summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2016-09-13 10:44:14 -0700
committerClark Scheff <clark@cyngn.com>2016-09-13 10:50:21 -0700
commitd1274eb549a37fbf32a534e1b5bfc43267669383 (patch)
tree1ad88e9e8cb2abed48f7c6a8c0b6c4516f07c955 /packages
parente2b1a0a6b3e12ba0bea5f30e1b9ec97fe2919898 (diff)
downloadframeworks_base-d1274eb549a37fbf32a534e1b5bfc43267669383.zip
frameworks_base-d1274eb549a37fbf32a534e1b5bfc43267669383.tar.gz
frameworks_base-d1274eb549a37fbf32a534e1b5bfc43267669383.tar.bz2
SysUI: Don't set panel bar to null and avoid NPEs
This patch removes the onDetachedFromWindow method introduced in change Ieaec759e4378a9a7701e6fba46ed33464caaee0a. It is not necessary to set the panel bar to null in the PanelViews or the PanelHolder in order for these objects to be GC'ed when recreating the status bar after a theme change or a user switch. Change-Id: I67f1e8289d04df2f5daefdb206030d7f0404d714 TICKET: HAM-1551
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java
index 82b1e1d..e1a400d 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java
@@ -146,16 +146,6 @@ public abstract class PanelBar extends FrameLayout {
return result;
}
- @Override
- protected void onDetachedFromWindow() {
- super.onDetachedFromWindow();
- for (PanelView pv : mPanels) {
- pv.setBar(null);
- }
- mPanels.clear();
- mPanelHolder.setBar(null);
- }
-
// called from PanelView when self-expanding, too
public void startOpeningPanel(PanelView panel) {
if (DEBUG) LOG("startOpeningPanel: " + panel);