Don't leak guts.
Change-Id: I7a9080ce4d360ed67b884eb9cbd8597496388389 Fixes: 29064258
This commit is contained in:
@@ -93,7 +93,6 @@ public class NotificationGuts extends LinearLayout implements TunerService.Tunab
|
|||||||
public NotificationGuts(Context context, AttributeSet attrs) {
|
public NotificationGuts(Context context, AttributeSet attrs) {
|
||||||
super(context, attrs);
|
super(context, attrs);
|
||||||
setWillNotDraw(false);
|
setWillNotDraw(false);
|
||||||
TunerService.get(mContext).addTunable(this, SHOW_SLIDER);
|
|
||||||
mHandler = new Handler();
|
mHandler = new Handler();
|
||||||
mFalsingCheck = new Runnable() {
|
mFalsingCheck = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
@@ -110,6 +109,18 @@ public class NotificationGuts extends LinearLayout implements TunerService.Tunab
|
|||||||
ta.recycle();
|
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() {
|
public void resetFalsingCheck() {
|
||||||
mHandler.removeCallbacks(mFalsingCheck);
|
mHandler.removeCallbacks(mFalsingCheck);
|
||||||
if (mNeedsFalsingProtection && mExposed) {
|
if (mNeedsFalsingProtection && mExposed) {
|
||||||
|
|||||||
Reference in New Issue
Block a user