Handle WiFi Enable/Disable Intents
Add an activity to handle intents to enable/disable wifi.
Bug: 133189568
Test: Manual
Change-Id: I135c3ff6e9e791a3764f96a3c8441cc7ff0bd192
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 10397eb..7479f10 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -324,6 +324,16 @@
<meta-data android:name="distractionOptimized" android:value="true"/>
</activity>
+ <activity
+ android:name=".wifi.WifiRequestToggleActivity"
+ android:excludeFromRecents="true">
+ <intent-filter>
+ <action android:name="android.net.wifi.action.REQUEST_ENABLE" />
+ <action android:name="android.net.wifi.action.REQUEST_DISABLE" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+
<!-- This logic is copied from phone.-->
<!-- Ensures there's lightweight fallback activity when no other MAIN/HOME activity is present.-->
<activity android:name=".FallbackHome"