commit | 2cacc55964e737078f982e19dcda74439eabb932 | [log] [tgz] |
---|---|---|
author | Nicolas Catania <niko@google.com> | Wed Mar 10 10:41:48 2010 -0800 |
committer | Nicolas Catania <niko@google.com> | Fri Mar 12 11:16:55 2010 -0800 |
tree | ed4e429b3eea8e7fb17734ffeaa7898adc8437db | |
parent | 9b75f74cd796543e6e88984984f19fd0c2cf9f38 [diff] |
Fixed crash Unable to add window Renamed onStop to onPause. onStop is not guaranteed to be called, which is probably why we have some extra code duplication in the finalize() method. Added a new onDestroy to clean up all the pending callbacks. At this stage, there is no window anymore and we should not call showDialog. Release the Handler in onDestroy. Not doing so has been the source of memory leaks in the past. Bug: 2501845 Change-Id: I35125fda1b53a6996b933056bafe2f0c04aea80a