From 09955c38659ec6e0420f90b89292585ededf6d44 Mon Sep 17 00:00:00 2001 From: Antony Sargent Date: Wed, 8 Mar 2017 14:34:10 -0800 Subject: [PATCH] Changes to installed app details screen for instant apps Bug: 35098444 Test: make RunSettingsRoboTests This implements the following changes to the app details screen: -Suppresses the "Uninstall" and "Force Stop" buttons -Adds "Install app" and "Clear app" buttons -Adds a mechanism for showing a link to the store's app details page that can be different from the default for installed apps. Change-Id: Icea83f7d1fde62d4101cb0c8a6d03849f6c56bca --- res/layout/instant_app_buttons.xml | 43 ++++++ res/values/strings.xml | 3 + res/xml/installed_app_details_ia.xml | 8 +- .../settings/applications/AppStoreUtil.java | 70 ++++++++++ .../ApplicationFeatureProvider.java | 10 ++ .../ApplicationFeatureProviderImpl.java | 7 + .../applications/InstalledAppDetails.java | 78 +++++++---- .../InstantAppButtonsController.java | 72 ++++++++++ .../applications/InstalledAppDetailsTest.java | 132 ++++++++++++++++++ 9 files changed, 392 insertions(+), 31 deletions(-) create mode 100644 res/layout/instant_app_buttons.xml create mode 100644 src/com/android/settings/applications/AppStoreUtil.java create mode 100644 src/com/android/settings/applications/instantapps/InstantAppButtonsController.java diff --git a/res/layout/instant_app_buttons.xml b/res/layout/instant_app_buttons.xml new file mode 100644 index 00000000000..b267361f5bc --- /dev/null +++ b/res/layout/instant_app_buttons.xml @@ -0,0 +1,43 @@ + + + + +