Merge "Fix memory leak in TopLevelBatteryPreferenceController" am: 060bf953e3 am: f5876a1df9 am: 9cfd6a6164

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1606501

Change-Id: I9d3f933e3fa5c68e34e97f9b4191022c5d0aee8b
This commit is contained in:
Treehugger Robot
2021-07-30 03:00:43 +00:00
committed by Automerger Merge Worker

View File

@@ -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();
} }