Fix enterprise settings bug
This fixes a bug where the picker
is not using the correct user id
and also ensures that the settings
activity uses the correct user when
launched.
Test: flash & test w/ work profile
Bug 322071206
Change-Id: I846593ff9ae320d9bb774e3e79ed9ef41f101ff5
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 195c44e..b728063 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -4403,9 +4403,12 @@
<activity android:name=".applications.credentials.CredentialsPickerActivity"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
- android:exported="false">
- <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
- android:value="com.android.settings.applications.credentials.DefaultCombinedPicker" />
+ android:exported="true">
+ <intent-filter android:priority="1">
+ <action android:name="android.settings.REQUEST_SET_AUTOFILL_SERVICE" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:scheme="package" />
+ </intent-filter>
</activity>
<activity
@@ -4550,19 +4553,6 @@
android:exported="false">
</activity>
- <activity android:name=".applications.autofill.AutofillPickerTrampolineActivity"
- android:theme="@android:style/Theme.NoDisplay"
- android:excludeFromRecents="true"
- android:launchMode="singleInstance"
- android:exported="true"
- android:label="@string/autofill_app">
- <intent-filter android:priority="1">
- <action android:name="android.settings.REQUEST_SET_AUTOFILL_SERVICE" />
- <category android:name="android.intent.category.DEFAULT" />
- <data android:scheme="package" />
- </intent-filter>
- </activity>
-
<activity android:name="Settings$AdvancedConnectedDeviceActivity"
android:exported="true"
android:label="@string/connected_device_connections_title">