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

Commit f809f7c2 authored by Arne Coucheron's avatar Arne Coucheron Committed by Zhao Wei Liew
Browse files

Revert "Support to show long or short name in SystemUI."

This reverts commit 9bb392c0.

Change-Id: I708d60ed6bb1dda1efb37656f5e81d5f9fc4727f
parent caa7eddb
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -287,9 +287,6 @@
    <bool name="config_show4gForIWlan">false</bool>
    <bool name="config_showSignalForIWlan">false</bool>

    <bool name="config_show_long_operator_name">false</bool>
    <bool name="config_show_long_operator_name_when_roaming">false</bool>

    <!-- Allow the flashlight service to use wakelocks -->
    <bool name="config_useWakelockForFlashlight">false</bool>
</resources>
+0 −15
Original line number Diff line number Diff line
@@ -431,12 +431,6 @@ public class MobileSignalController extends SignalController<
            mCurrentState.networkName = mServiceState.getOperatorAlphaShort();
        }

        if (!showLongOperatorName()) {
            mCurrentState.networkNameData = TextUtils.isEmpty(mServiceState.
                    getOperatorAlphaShort()) ? mCurrentState.networkNameData : mServiceState.
                    getOperatorAlphaShort() + " " + getNetworkClassString(mServiceState);
        }

        notifyListenersIfNecessary();
    }

@@ -444,15 +438,6 @@ public class MobileSignalController extends SignalController<
        return !mPhone.getDataEnabled(mSubscriptionInfo.getSubscriptionId());
    }

    private boolean showLongOperatorName() {
        if (mContext.getResources().getBoolean(R.bool.config_show_long_operator_name) || (mContext.
                getResources().getBoolean(R.bool.config_show_long_operator_name_when_roaming) &&
                isRoaming())) {
            return true;
        }
        return false;
    }

    @VisibleForTesting
    void setActivity(int activity) {
        mCurrentState.activityIn = activity == TelephonyManager.DATA_ACTIVITY_INOUT