Keep compatibility for old WiFi shortcut
WifiSettings2Activity has been replaced by WifiSettingsActivity
Test: Create a shortcut to WifiSettings in Android 11, update to Android 12 and test it
Bug: 202534606
Change-Id: I042eb3ae0bc0af6c42221c876cc4ea7b0a6de0b7
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 9b2cf24..f367b6f 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -283,6 +283,17 @@
android:value="true" />
</activity>
+ <!-- Keep compatibility with old shortcuts. -->
+ <activity-alias
+ android:name="Settings$WifiSettings2Activity"
+ android:targetActivity="Settings$WifiSettingsActivity"
+ android:label="@string/wifi_settings"
+ android:icon="@drawable/ic_homepage_network"
+ android:exported="true">
+ <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
+ android:value="com.android.settings.wifi.WifiSettings" />
+ </activity-alias>
+
<activity
android:name="Settings$NetworkProviderSettingsActivity"
android:label="@string/network_dashboard_title"