Don\'t leak guts. am: cdf98e1964
am: 0853233433
* commit '0853233433958eb9c97d8237341be58895e8a541':
Don't leak guts.
Change-Id: Ifa768e26b323a46cd595feebaec2e947415b938e
This commit is contained in:
@@ -93,7 +93,6 @@ public class NotificationGuts extends LinearLayout implements TunerService.Tunab
|
||||
public NotificationGuts(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
setWillNotDraw(false);
|
||||
TunerService.get(mContext).addTunable(this, SHOW_SLIDER);
|
||||
mHandler = new Handler();
|
||||
mFalsingCheck = new Runnable() {
|
||||
@Override
|
||||
@@ -110,6 +109,18 @@ public class NotificationGuts extends LinearLayout implements TunerService.Tunab
|
||||
ta.recycle();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
TunerService.get(mContext).addTunable(this, SHOW_SLIDER);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDetachedFromWindow() {
|
||||
TunerService.get(mContext).removeTunable(this);
|
||||
super.onDetachedFromWindow();
|
||||
}
|
||||
|
||||
public void resetFalsingCheck() {
|
||||
mHandler.removeCallbacks(mFalsingCheck);
|
||||
if (mNeedsFalsingProtection && mExposed) {
|
||||
|
||||
Reference in New Issue
Block a user