summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Launcher.java
diff options
context:
space:
mode:
authorMario Bertschler <bmario@google.com>2017-03-20 23:32:07 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-03-20 23:32:07 +0000
commit49e37073b139c87b9cc446cd9431dcae5a9321ee (patch)
tree942f51470af600515e974ea9cfae71632f3e6338 /src/com/android/launcher3/Launcher.java
parentbf4327520c59a1c23947df2dc9d83fcdf2adeab1 (diff)
parent08ffaae3b627a124eaaf8610f5ea8f1898700d45 (diff)
downloadandroid_packages_apps_Trebuchet-49e37073b139c87b9cc446cd9431dcae5a9321ee.tar.gz
android_packages_apps_Trebuchet-49e37073b139c87b9cc446cd9431dcae5a9321ee.tar.bz2
android_packages_apps_Trebuchet-49e37073b139c87b9cc446cd9431dcae5a9321ee.zip
Merge "Show promise app icon progress in All Apps and setup market intent on clicking promise app icon in All Apps." into ub-launcher3-master
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r--src/com/android/launcher3/Launcher.java24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 7d13c88f4..43ff28ac3 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -2459,7 +2459,13 @@ public class Launcher extends BaseActivity
private void startAppShortcutOrInfoActivity(View v) {
ItemInfo item = (ItemInfo) v.getTag();
- Intent intent = item.getIntent();
+ Intent intent;
+ if (item instanceof PromiseAppInfo) {
+ PromiseAppInfo promiseAppInfo = (PromiseAppInfo) item;
+ intent = promiseAppInfo.getMarketIntent();
+ } else {
+ intent = item.getIntent();
+ }
if (intent == null) {
throw new IllegalArgumentException("Input must have a valid intent");
}
@@ -3768,6 +3774,22 @@ public class Launcher extends BaseActivity
}
@Override
+ public void bindPromiseAppProgressUpdated(final PromiseAppInfo app) {
+ Runnable r = new Runnable() {
+ public void run() {
+ bindPromiseAppProgressUpdated(app);
+ }
+ };
+ if (waitUntilResume(r)) {
+ return;
+ }
+
+ if (mAppsView != null) {
+ mAppsView.updatePromiseAppProgress(app);
+ }
+ }
+
+ @Override
public void bindWidgetsRestored(final ArrayList<LauncherAppWidgetInfo> widgets) {
Runnable r = new Runnable() {
public void run() {