summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2016-09-13 10:44:14 -0700
committerMichael Bestas <mikeioannina@gmail.com>2016-09-16 19:10:04 +0300
commitcdf656dfd2aa24e610a0f03d50f11cfff3c565ee (patch)
treee559336b2eadc8c9065302b41192ad89e65a3d99
parent51e4e422f3f6eff1ce151265573534804452defc (diff)
downloadandroid_frameworks_base-cdf656dfd2aa24e610a0f03d50f11cfff3c565ee.tar.gz
android_frameworks_base-cdf656dfd2aa24e610a0f03d50f11cfff3c565ee.tar.bz2
android_frameworks_base-cdf656dfd2aa24e610a0f03d50f11cfff3c565ee.zip
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
-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 82b1e1d2410..e1a400d4363 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);