diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-03-30 23:27:20 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-03-31 10:00:16 -0700 |
commit | 07f636059a2fb45f2d8284fedbbbba2c78b05157 (patch) | |
tree | f842e42e460904ece2010389f2f91442411cd9da /src/com/android | |
parent | 9c0cc3b8ee5f32c485ced17e72a2d9dc551e1caa (diff) | |
download | packages_apps_settings-07f636059a2fb45f2d8284fedbbbba2c78b05157.zip packages_apps_settings-07f636059a2fb45f2d8284fedbbbba2c78b05157.tar.gz packages_apps_settings-07f636059a2fb45f2d8284fedbbbba2c78b05157.tar.bz2 |
Fix issue #2549511 Crash while moving the installed app to Phone
android.view.WindowManager$BadTokenException: Unable to add window
Change-Id: Ie844fd9cde05134431695f4f5bd27827e9e23ce5
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/settings/InstalledAppDetails.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/settings/InstalledAppDetails.java b/src/com/android/settings/InstalledAppDetails.java index fb1fbf7..41ba49b 100644 --- a/src/com/android/settings/InstalledAppDetails.java +++ b/src/com/android/settings/InstalledAppDetails.java @@ -119,6 +119,10 @@ public class InstalledAppDetails extends Activity implements View.OnClickListene private Handler mHandler = new Handler() { public void handleMessage(Message msg) { + // If the activity is gone, don't process any more messages. + if (isFinishing()) { + return; + } switch (msg.what) { case CLEAR_USER_DATA: processClearMsg(msg); |