summaryrefslogtreecommitdiffstats
path: root/core/java/android/app
diff options
context:
space:
mode:
authorJozef BABJAK <jozef.babjak@gmail.com>2011-02-21 15:33:59 +0100
committerJozef BABJAK <jozef.babjak@gmail.com>2011-02-21 15:33:59 +0100
commit6fe725ee5d943faaaa7ae9899b8613c90159d2dd (patch)
treec2c941b61d934bad6aac800da3ed759b9619c0d5 /core/java/android/app
parentb62353ad1d1f540dee270be0c0d383ac108a290b (diff)
downloadframeworks_base-6fe725ee5d943faaaa7ae9899b8613c90159d2dd.zip
frameworks_base-6fe725ee5d943faaaa7ae9899b8613c90159d2dd.tar.gz
frameworks_base-6fe725ee5d943faaaa7ae9899b8613c90159d2dd.tar.bz2
Using proper key for removing from map.
Window object was improperly used as a key for removing record from map. This was silenly ignored, because remove() method accepts Object. However, the ID should be used there which is type of String, i.e. the same ID which was used for lookup. Change-Id: I81fc2f90926a34414bf9042ddf4a2edff4c1fda1
Diffstat (limited to 'core/java/android/app')
-rw-r--r--core/java/android/app/LocalActivityManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/LocalActivityManager.java b/core/java/android/app/LocalActivityManager.java
index a24fcae..7845e03 100644
--- a/core/java/android/app/LocalActivityManager.java
+++ b/core/java/android/app/LocalActivityManager.java
@@ -380,7 +380,7 @@ public class LocalActivityManager {
if (r != null) {
win = performDestroy(r, finish);
if (finish) {
- mActivities.remove(r);
+ mActivities.remove(id);
}
}
return win;