Fix SIM cards option displayed in RYU & N9 WiFi Settings
Same as previously with Developer Settings, the Settings main
activity uses PackageManager to disable options that shouldn't
show up. Since this has a delay, these options show up initially
and disappear after a refresh. Disabling them by default makes
them not show up at all for devices that won't have them, but in
exchange makes them not be visible until the first refresh for
devices that do have them.
A more complete fix would involve having a way to initially
not depend on PackageManager for option visibilities.
Bug: 28308433
Change-Id: I6f5c2151a45878fb6c69a9f9971c29ebe65d9d8a
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index f6c7957..112ee51 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -2716,6 +2716,7 @@
<activity android:name="Settings$SimSettingsActivity"
android:label="@string/sim_settings_title"
android:icon="@drawable/ic_settings_sim"
+ android:enabled="false"
android:taskAffinity="">
<intent-filter android:priority="1">
<action android:name="com.android.settings.sim.SIM_SUB_INFO_SETTINGS" />