summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-06-08 22:33:34 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-08 22:33:34 -0700
commit5ba2e872fa684c0f1b992a95df00854b58f2cd8c (patch)
tree76eaf988f8aa32e6a48c71be91a63b185613141a /core
parente22fe9331ad8a9f81470751fdeca7633f654cffa (diff)
parent48a7651823030ed3c0f4c084b423430044425fea (diff)
downloadframeworks_base-5ba2e872fa684c0f1b992a95df00854b58f2cd8c.zip
frameworks_base-5ba2e872fa684c0f1b992a95df00854b58f2cd8c.tar.gz
frameworks_base-5ba2e872fa684c0f1b992a95df00854b58f2cd8c.tar.bz2
Merge "Fix for not reporting correct "sw" in compat mode." into honeycomb-mr2
Diffstat (limited to 'core')
-rw-r--r--core/java/android/view/WindowManagerImpl.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/core/java/android/view/WindowManagerImpl.java b/core/java/android/view/WindowManagerImpl.java
index a853c15..02ab1dc 100644
--- a/core/java/android/view/WindowManagerImpl.java
+++ b/core/java/android/view/WindowManagerImpl.java
@@ -342,9 +342,11 @@ public class WindowManagerImpl implements WindowManager {
return view;
}
- InputMethodManager imm = InputMethodManager.getInstance(view.getContext());
- if (imm != null) {
- imm.windowDismissed(mViews[index].getWindowToken());
+ if (view != null) {
+ InputMethodManager imm = InputMethodManager.getInstance(view.getContext());
+ if (imm != null) {
+ imm.windowDismissed(mViews[index].getWindowToken());
+ }
}
root.die(false);
finishRemoveViewLocked(view, index);
@@ -368,9 +370,11 @@ public class WindowManagerImpl implements WindowManager {
removeItem(tmpParams, mParams, index);
mParams = tmpParams;
- view.assignParent(null);
- // func doesn't allow null... does it matter if we clear them?
- //view.setLayoutParams(null);
+ if (view != null) {
+ view.assignParent(null);
+ // func doesn't allow null... does it matter if we clear them?
+ //view.setLayoutParams(null);
+ }
}
public void closeAll(IBinder token, String who, String what) {