Closed GoogleCodeExporter closed 8 years ago
This is because the menu item, MENU_MY_LOCATION, can be invoked after onPause
is called. We just need to check against null for dataHub. I will prepare a CL
for you to review.
Original comment by jshih@google.com
on 6 Apr 2012 at 12:45
Hi Youtao:
Wondering if you can review this CL.
http://code.google.com/r/jshih-mytracks9/source/detail?r=ced02798ce03fc005cd64f5
36137929d81196067#
Original comment by jshih@google.com
on 6 Apr 2012 at 12:52
How to reproduce that?
Original comment by youtaol@google.com
on 6 Apr 2012 at 9:28
You can try clicking on menu->"My Location" and then quickly switching to
either the chart view or the stats view.
Basically, dataHub is set to null by the onPause method. OnPause can happen
when switching view, has an incoming call, etc. The UI action like clicking on
"My Location" is asynchronous, which can easily happen after the onPause method.
Original comment by jshih@google.com
on 9 Apr 2012 at 6:10
Thanks, in such situation, this change should be good.
Original comment by youtaol@google.com
on 10 Apr 2012 at 2:40
Original comment by jshih@google.com
on 11 Apr 2012 at 3:04
Original issue reported on code.google.com by
youtaol@google.com
on 30 Dec 2011 at 12:19