Loading res/xml/mobile_network_settings.xml +2 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ <ListPreference android:key="calls_preference" android:title="@string/calls_preference" android:summary="@string/summary_placeholder" android:enabled="false" settings:controller="com.android.settings.network.telephony.CallsDefaultSubscriptionController" settings:allowDividerAbove="true"/> Loading @@ -44,6 +45,7 @@ <ListPreference android:key="sms_preference" android:title="@string/sms_preference" android:summary="@string/summary_placeholder" android:enabled="false" settings:controller="com.android.settings.network.telephony.SmsDefaultSubscriptionController"/> Loading src/com/android/settings/network/telephony/DefaultSubscriptionController.java +0 −2 Original line number Diff line number Diff line Loading @@ -112,8 +112,6 @@ public abstract class DefaultSubscriptionController extends TelephonyBasePrefere public void displayPreference(PreferenceScreen screen) { super.displayPreference(screen); mPreference = screen.findPreference(getPreferenceKey()); // Set a summary placeholder to reduce flicker. mPreference.setSummaryProvider(pref -> mContext.getString(R.string.summary_placeholder)); updateEntries(); } Loading Loading
res/xml/mobile_network_settings.xml +2 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ <ListPreference android:key="calls_preference" android:title="@string/calls_preference" android:summary="@string/summary_placeholder" android:enabled="false" settings:controller="com.android.settings.network.telephony.CallsDefaultSubscriptionController" settings:allowDividerAbove="true"/> Loading @@ -44,6 +45,7 @@ <ListPreference android:key="sms_preference" android:title="@string/sms_preference" android:summary="@string/summary_placeholder" android:enabled="false" settings:controller="com.android.settings.network.telephony.SmsDefaultSubscriptionController"/> Loading
src/com/android/settings/network/telephony/DefaultSubscriptionController.java +0 −2 Original line number Diff line number Diff line Loading @@ -112,8 +112,6 @@ public abstract class DefaultSubscriptionController extends TelephonyBasePrefere public void displayPreference(PreferenceScreen screen) { super.displayPreference(screen); mPreference = screen.findPreference(getPreferenceKey()); // Set a summary placeholder to reduce flicker. mPreference.setSummaryProvider(pref -> mContext.getString(R.string.summary_placeholder)); updateEntries(); } Loading