From 217d0e9d236e9c8eaf8e28861499a00cf1c5f929 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Fri, 17 Mar 2017 15:48:38 -0700 Subject: [PATCH] Update picture-in-picture settings to match mocks. - Removing switches in top-level picture-in-picture settings, adding details screen for each app which contains the switch and some additional information. Bug: 35957404 Test: make -j40 RunSettingsRoboTests Change-Id: Ib22df8a52ab857e071ec43dd3e5d1f5282db35cb --- AndroidManifest.xml | 12 ++ res/values/strings.xml | 13 +- res/xml/special_access.xml | 1 + src/com/android/settings/Settings.java | 1 + .../applications/InstalledAppDetails.java | 23 +-- .../applications/PictureInPictureDetails.java | 138 ++++++++++++++++++ .../PictureInPictureSettings.java | 59 ++------ .../core/gateway/SettingsGateway.java | 2 + .../grandfather_not_implementing_indexable | 1 + ....java => PictureInPictureDetailsTest.java} | 22 +-- 10 files changed, 197 insertions(+), 75 deletions(-) create mode 100644 src/com/android/settings/applications/PictureInPictureDetails.java rename tests/robotests/src/com/android/settings/applications/{PictureInPictureSettingsTest.java => PictureInPictureDetailsTest.java} (86%) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index a6d066ba6e6..791be09a5d2 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2490,6 +2490,18 @@ android:value="com.android.settings.applications.PictureInPictureSettings" /> + + + + + + + + + diff --git a/res/values/strings.xml b/res/values/strings.xml index ddb1bf17ac5..06ea67f3e94 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -6459,8 +6459,17 @@ Picture-in-picture - - Permit entering picture-in-picture when leaving app + + Allow picture-in-picture + + + Allow this app to create a picture-in-picture window while the app is open or after you leave it (for example, to continue watching a video). This window displays on top of other apps you're using. + + + Yes + + + No Do Not Disturb access diff --git a/res/xml/special_access.xml b/res/xml/special_access.xml index 8bf5c5657d2..6eaede9c3d0 100644 --- a/res/xml/special_access.xml +++ b/res/xml/special_access.xml @@ -79,6 +79,7 @@ android:title="@string/picture_in_picture_title" android:fragment="com.android.settings.applications.PictureInPictureSettings" settings:keywords="@string/picture_in_picture_keywords" /> +