Loading src/com/android/settings/network/telephony/Enhanced4gBasePreferenceController.java +3 −0 Original line number Diff line number Diff line Loading @@ -225,6 +225,9 @@ public class Enhanced4gBasePreferenceController extends TelephonyTogglePreferenc if (SubscriptionManager.isValidSubscriptionId(subId)) { mTelephonyManager = mTelephonyManager.createForSubscriptionId(subId); } // assign current call state so that it helps to show correct preference state even // before first onCallStateChanged() by initial registration. mCallState = mTelephonyManager.getCallState(subId); mTelephonyManager.listen(this, PhoneStateListener.LISTEN_CALL_STATE); final long supportedRadioBitmask = mTelephonyManager.getSupportedRadioAccessFamily(); Loading src/com/android/settings/network/telephony/VideoCallingPreferenceController.java +3 −0 Original line number Diff line number Diff line Loading @@ -182,6 +182,9 @@ public class VideoCallingPreferenceController extends TelephonyTogglePreferenceC if (SubscriptionManager.isValidSubscriptionId(subId)) { mTelephonyManager = mTelephonyManager.createForSubscriptionId(subId); } // assign current call state so that it helps to show correct preference state even // before first onCallStateChanged() by initial registration. mCallState = mTelephonyManager.getCallState(subId); mTelephonyManager.listen(this, PhoneStateListener.LISTEN_CALL_STATE); } Loading src/com/android/settings/network/telephony/WifiCallingPreferenceController.java +3 −0 Original line number Diff line number Diff line Loading @@ -210,6 +210,9 @@ public class WifiCallingPreferenceController extends TelephonyBasePreferenceCont public void register(Context context, int subId) { mTelephonyManager = getTelephonyManager(context, subId); // assign current call state so that it helps to show correct preference state even // before first onCallStateChanged() by initial registration. mCallState = mTelephonyManager.getCallState(subId); mTelephonyManager.listen(this, PhoneStateListener.LISTEN_CALL_STATE); } Loading Loading
src/com/android/settings/network/telephony/Enhanced4gBasePreferenceController.java +3 −0 Original line number Diff line number Diff line Loading @@ -225,6 +225,9 @@ public class Enhanced4gBasePreferenceController extends TelephonyTogglePreferenc if (SubscriptionManager.isValidSubscriptionId(subId)) { mTelephonyManager = mTelephonyManager.createForSubscriptionId(subId); } // assign current call state so that it helps to show correct preference state even // before first onCallStateChanged() by initial registration. mCallState = mTelephonyManager.getCallState(subId); mTelephonyManager.listen(this, PhoneStateListener.LISTEN_CALL_STATE); final long supportedRadioBitmask = mTelephonyManager.getSupportedRadioAccessFamily(); Loading
src/com/android/settings/network/telephony/VideoCallingPreferenceController.java +3 −0 Original line number Diff line number Diff line Loading @@ -182,6 +182,9 @@ public class VideoCallingPreferenceController extends TelephonyTogglePreferenceC if (SubscriptionManager.isValidSubscriptionId(subId)) { mTelephonyManager = mTelephonyManager.createForSubscriptionId(subId); } // assign current call state so that it helps to show correct preference state even // before first onCallStateChanged() by initial registration. mCallState = mTelephonyManager.getCallState(subId); mTelephonyManager.listen(this, PhoneStateListener.LISTEN_CALL_STATE); } Loading
src/com/android/settings/network/telephony/WifiCallingPreferenceController.java +3 −0 Original line number Diff line number Diff line Loading @@ -210,6 +210,9 @@ public class WifiCallingPreferenceController extends TelephonyBasePreferenceCont public void register(Context context, int subId) { mTelephonyManager = getTelephonyManager(context, subId); // assign current call state so that it helps to show correct preference state even // before first onCallStateChanged() by initial registration. mCallState = mTelephonyManager.getCallState(subId); mTelephonyManager.listen(this, PhoneStateListener.LISTEN_CALL_STATE); } Loading