Fix memory leak in TopLevelBatteryPreferenceController
Assigning context.getApplicationContext() as context in ConditionContextualCardController. Bug: 181192885 Test: run connectivity module auo test pass Change-Id: Iff35520f911a9fd62a0bbb5bbda20608e9d99246
This commit is contained in:
committed by
Chuanghua Zhao
parent
f36c2bc0a4
commit
6187ec83a8
@@ -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