Fix issue #2549511 Crash while moving the installed app to Phone

android.view.WindowManager$BadTokenException: Unable to add window

Change-Id: Ie844fd9cde05134431695f4f5bd27827e9e23ce5
This commit is contained in:
Dianne Hackborn
2010-03-30 23:27:20 -07:00
parent 9c0cc3b8ee
commit 07f636059a

View File

@@ -119,6 +119,10 @@ public class InstalledAppDetails extends Activity implements View.OnClickListene
private Handler mHandler = new Handler() { private Handler mHandler = new Handler() {
public void handleMessage(Message msg) { public void handleMessage(Message msg) {
// If the activity is gone, don't process any more messages.
if (isFinishing()) {
return;
}
switch (msg.what) { switch (msg.what) {
case CLEAR_USER_DATA: case CLEAR_USER_DATA:
processClearMsg(msg); processClearMsg(msg);