Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2943f021 authored by Fang Yunong's avatar Fang Yunong Committed by Gerrit - the friendly Code Review server
Browse files

DNM:SystemUI: System UI force close when switch font size

SystemUI force close as the ClassCastException occured when typecasting, use
the parameters of the parent class instead of typecasting.

Change-Id: I63d88d54d9b30363b20076354ea0edddef8fd8cd
CRs-Fixed: 1064417
parent 7c79a49d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ public class MobileSignalController extends SignalController<
    private MobileIconGroup mDefaultIcons;
    private Config mConfig;
    private int mNewCellIdentity = Integer.MAX_VALUE;
    private CallbackHandler mCallbackHandler;

    private final int STATUS_BAR_STYLE_ANDROID_DEFAULT = 0;
    private final int STATUS_BAR_STYLE_CDMA_1X_COMBINED = 1;
@@ -96,6 +97,7 @@ public class MobileSignalController extends SignalController<
        super("MobileSignalController(" + info.getSubscriptionId() + ")", context,
                NetworkCapabilities.TRANSPORT_CELLULAR, callbackHandler,
                networkController);
        mCallbackHandler = callbackHandler;
        mNetworkToIconLookup = new SparseArray<>();
        mConfig = config;
        mPhone = phone;
@@ -344,8 +346,7 @@ public class MobileSignalController extends SignalController<
                    dataContentDescription, description, icons.mIsWide,
                    mSubscriptionInfo.getSubscriptionId());
        }
        CallbackHandler callbackHandler = (CallbackHandler) callback;
        callbackHandler.post(new Runnable() {
        mCallbackHandler.post(new Runnable() {
            @Override
            public void run() {
                mNetworkController.updateNetworkLabelView();