Merge "Fix memory leak in TopLevelBatteryPreferenceController" am: 060bf953e3
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1606501 Change-Id: I818ae58baa161689a867cea8bc4662db602dfdcb
This commit is contained in:
@@ -54,8 +54,8 @@ public class ConditionContextualCardController implements ContextualCardControll
|
|||||||
private boolean mIsExpanded;
|
private boolean mIsExpanded;
|
||||||
|
|
||||||
public ConditionContextualCardController(Context context) {
|
public ConditionContextualCardController(Context context) {
|
||||||
mContext = context;
|
mContext = context.getApplicationContext();
|
||||||
mConditionManager = new ConditionManager(context.getApplicationContext(), this);
|
mConditionManager = new ConditionManager(mContext, this);
|
||||||
mConditionManager.startMonitoringStateChange();
|
mConditionManager.startMonitoringStateChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user