OSDN Git Service

Changes to installed app details screen for instant apps
authorAntony Sargent <asargent@google.com>
Wed, 8 Mar 2017 22:34:10 +0000 (14:34 -0800)
committerAntony Sargent <asargent@google.com>
Mon, 27 Mar 2017 21:34:56 +0000 (14:34 -0700)
commit09955c38659ec6e0420f90b89292585ededf6d44
tree43d38459721dd309f51819c045f0dbbaf69fad10
parentd3505c76cdc70664b5f730eb7bb1e20351a2af4d
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 [new file with mode: 0644]
res/values/strings.xml
res/xml/installed_app_details_ia.xml
src/com/android/settings/applications/AppStoreUtil.java [new file with mode: 0644]
src/com/android/settings/applications/ApplicationFeatureProvider.java
src/com/android/settings/applications/ApplicationFeatureProviderImpl.java
src/com/android/settings/applications/InstalledAppDetails.java
src/com/android/settings/applications/instantapps/InstantAppButtonsController.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/applications/InstalledAppDetailsTest.java