From 08ffaae3b627a124eaaf8610f5ea8f1898700d45 Mon Sep 17 00:00:00 2001 From: Mario Bertschler Date: Mon, 20 Mar 2017 11:30:27 -0700 Subject: Show promise app icon progress in All Apps and setup market intent on clicking promise app icon in All Apps. Only the progress will be changed with animation on progress update, no relayout is performed. If the icon is newly bound, the progress will not be animated. Bug: 23952570 Change-Id: I98d3f945f08a2abadf53f20e6007c15e56d5d410 --- src/com/android/launcher3/InfoDropTarget.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/com/android/launcher3/InfoDropTarget.java') diff --git a/src/com/android/launcher3/InfoDropTarget.java b/src/com/android/launcher3/InfoDropTarget.java index 34adf47a1..2f61a01ed 100644 --- a/src/com/android/launcher3/InfoDropTarget.java +++ b/src/com/android/launcher3/InfoDropTarget.java @@ -60,6 +60,12 @@ public class InfoDropTarget extends UninstallDropTarget { */ public static boolean startDetailsActivityForInfo( ItemInfo info, Launcher launcher, DropTargetResultCallback callback) { + if (info instanceof PromiseAppInfo) { + PromiseAppInfo promiseAppInfo = (PromiseAppInfo) info; + launcher.startActivity(promiseAppInfo.getMarketIntent()); + return true; + } + boolean result = false; ComponentName componentName = null; if (info instanceof AppInfo) { -- cgit v1.2.3