Skip to content

Commit 4bf6221

Browse files
neobuddy89Genkzsz11
authored andcommitted
fixup! SystemUI: old style mobile data indicators
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
1 parent 4cef33e commit 4bf6221

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarIconController.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ protected void destroy() {
138138
mDarkIconDispatcher.removeDarkReceiver((DarkReceiver) mGroup.getChildAt(i));
139139
}
140140
mGroup.removeAllViews();
141+
Dependency.get(TunerService.class).removeTunable(this);
141142
}
142143

143144
@Override
@@ -240,8 +241,6 @@ public IconManager(ViewGroup group, CommandQueue commandQueue) {
240241
// In case we miss the first onAttachedToWindow event
241242
tracker.onViewAttachedToWindow(mGroup);
242243
}
243-
244-
Dependency.get(TunerService.class).addTunable(this, USE_OLD_MOBILETYPE);
245244
}
246245

247246
public boolean isDemoable() {
@@ -316,6 +315,7 @@ protected StatusBarMobileView addMobileIcon(int index, String slot, MobileIconSt
316315
StatusBarMobileView view = onCreateStatusBarMobileView(slot);
317316
view.applyMobileState(state);
318317
mGroup.addView(view, index, onCreateLayoutParams());
318+
Dependency.get(TunerService.class).addTunable(this, USE_OLD_MOBILETYPE);
319319

320320
if (mIsInDemoMode) {
321321
mDemoStatusIcons.addMobileView(state);
@@ -348,6 +348,7 @@ protected LinearLayout.LayoutParams onCreateLayoutParams() {
348348

349349
protected void destroy() {
350350
mGroup.removeAllViews();
351+
Dependency.get(TunerService.class).removeTunable(this);
351352
}
352353

353354
protected void onIconExternal(int viewIndex, int height) {

0 commit comments

Comments
 (0)