Loading AndroidManifest.xml +1 −1 Original line number Diff line number Diff line Loading @@ -2575,7 +2575,7 @@ <activity android:name="RegulatoryInfoDisplayActivity" android:label="@string/regulatory_information" android:taskAffinity="" android:enabled="true"> android:enabled="@bool/config_show_regulatory_info"> <intent-filter> <action android:name="android.settings.SHOW_REGULATORY_INFO" /> <category android:name="android.intent.category.DEFAULT" /> Loading src/com/android/settings/DeviceInfoSettings.java +2 −3 Original line number Diff line number Diff line Loading @@ -209,10 +209,9 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In // Remove manual entry if none present. removePreferenceIfBoolFalse(KEY_MANUAL, R.bool.config_show_manual); // Remove regulatory information if none present or config_show_regulatory_info is disabled // Remove regulatory information if none present final Intent intent = new Intent(Settings.ACTION_SHOW_REGULATORY_INFO); if (getPackageManager().queryIntentActivities(intent, 0).isEmpty() || !getResources().getBoolean(R.bool.config_show_regulatory_info)) { if (getPackageManager().queryIntentActivities(intent, 0).isEmpty()) { Preference pref = findPreference(KEY_REGULATORY_INFO); if (pref != null) { getPreferenceScreen().removePreference(pref); Loading Loading
AndroidManifest.xml +1 −1 Original line number Diff line number Diff line Loading @@ -2575,7 +2575,7 @@ <activity android:name="RegulatoryInfoDisplayActivity" android:label="@string/regulatory_information" android:taskAffinity="" android:enabled="true"> android:enabled="@bool/config_show_regulatory_info"> <intent-filter> <action android:name="android.settings.SHOW_REGULATORY_INFO" /> <category android:name="android.intent.category.DEFAULT" /> Loading
src/com/android/settings/DeviceInfoSettings.java +2 −3 Original line number Diff line number Diff line Loading @@ -209,10 +209,9 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In // Remove manual entry if none present. removePreferenceIfBoolFalse(KEY_MANUAL, R.bool.config_show_manual); // Remove regulatory information if none present or config_show_regulatory_info is disabled // Remove regulatory information if none present final Intent intent = new Intent(Settings.ACTION_SHOW_REGULATORY_INFO); if (getPackageManager().queryIntentActivities(intent, 0).isEmpty() || !getResources().getBoolean(R.bool.config_show_regulatory_info)) { if (getPackageManager().queryIntentActivities(intent, 0).isEmpty()) { Preference pref = findPreference(KEY_REGULATORY_INFO); if (pref != null) { getPreferenceScreen().removePreference(pref); Loading