summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherAppWidgetInfo.java
diff options
context:
space:
mode:
authorJon Miranda <jonmiranda@google.com>2017-05-02 18:36:18 -0700
committerJon Miranda <jonmiranda@google.com>2017-05-03 17:05:41 -0700
commit2b823f452b6c0b7c0bb5ef67f77510ce75800809 (patch)
tree68e050bdb7e07315470c98b800f81c7931b8495b /src/com/android/launcher3/LauncherAppWidgetInfo.java
parent0811bc5003726633c4be354a064bc6f0d4e58553 (diff)
downloadandroid_packages_apps_Trebuchet-2b823f452b6c0b7c0bb5ef67f77510ce75800809.tar.gz
android_packages_apps_Trebuchet-2b823f452b6c0b7c0bb5ef67f77510ce75800809.tar.bz2
android_packages_apps_Trebuchet-2b823f452b6c0b7c0bb5ef67f77510ce75800809.zip
Show icon in PendingAppWidgetHostView immediately.
Before this change, PendingAppWidgetHostView would appear 'blank' until they were loaded -- which could take a while depending on how many apps the user had, because the all apps icons are loaded first. Bug: 36815047 Change-Id: Ia7449cce4341ed9e9384fc8aaadeaae6c33bb262
Diffstat (limited to 'src/com/android/launcher3/LauncherAppWidgetInfo.java')
-rw-r--r--src/com/android/launcher3/LauncherAppWidgetInfo.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher3/LauncherAppWidgetInfo.java b/src/com/android/launcher3/LauncherAppWidgetInfo.java
index 1e0f28546..6f23e56b3 100644
--- a/src/com/android/launcher3/LauncherAppWidgetInfo.java
+++ b/src/com/android/launcher3/LauncherAppWidgetInfo.java
@@ -21,6 +21,7 @@ import android.content.ComponentName;
import android.content.Intent;
import android.os.Process;
+import com.android.launcher3.model.PackageItemInfo;
import com.android.launcher3.util.ContentWriter;
/**
@@ -95,6 +96,11 @@ public class LauncherAppWidgetInfo extends ItemInfo {
*/
public Intent bindOptions;
+ /**
+ * Nonnull for pending widgets. We use this to get the icon and title for the widget.
+ */
+ public PackageItemInfo pendingItemInfo;
+
private boolean mHasNotifiedInitialWidgetSizeChanged;
public LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) {