Update pip setings stub message
Customized toast message to clairify whether pip is not supported vs pip
settings not existing. Also added android:exported to ContactsStub for
S compatibility and added missing activity.
Bug: 158232781
Test: manual
Change-Id: I87bff28b9545cb7180a5468d41986d6e0f87423b
diff --git a/FrameworkPackageStubs/AndroidManifest.xml b/FrameworkPackageStubs/AndroidManifest.xml
index bb140be..cb3b634 100644
--- a/FrameworkPackageStubs/AndroidManifest.xml
+++ b/FrameworkPackageStubs/AndroidManifest.xml
@@ -99,10 +99,6 @@
<action android:name="android.settings.USER_DICTIONARY_SETTINGS"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
- <intent-filter android:priority="-1">
- <action android:name="android.settings.PICTURE_IN_PICTURE_SETTINGS" />
- <category android:name="android.intent.category.DEFAULT" />
- </intent-filter>
</activity>
<!-- CDD Core Application Intents Stubs -->
@@ -206,11 +202,23 @@
</intent-filter>
</activity>
+ <!-- Picture in picture settings stub -->
+ <activity android:name=".Stubs$PictureInPictureSettingsStub"
+ android:label="@string/stub_name"
+ android:excludeFromRecents="true"
+ android:exported="true">
+ <intent-filter android:priority="-1">
+ <action android:name="android.settings.PICTURE_IN_PICTURE_SETTINGS" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+
<!-- Contacts package stubs -->
<activity
android:name=".Stubs$ContactsStub"
android:label="@string/stub_name"
- android:excludeFromRecents="true">
+ android:excludeFromRecents="true"
+ android:exported="true">
<intent-filter android:priority="-1">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />