diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-09-09 15:47:55 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-11-09 15:50:08 -0800 |
commit | f0ba8b7ca1dc8fd53451d3d16e9f4fc306cddcd4 (patch) | |
tree | 821627bf354c858215e48c58cc5122a94ebd9c08 /src/com/android/launcher3/LauncherAppWidgetInfo.java | |
parent | 0d547bfd570e2e5d6ced55e24305d070fe2b78e2 (diff) | |
download | android_packages_apps_Trebuchet-f0ba8b7ca1dc8fd53451d3d16e9f4fc306cddcd4.tar.gz android_packages_apps_Trebuchet-f0ba8b7ca1dc8fd53451d3d16e9f4fc306cddcd4.tar.bz2 android_packages_apps_Trebuchet-f0ba8b7ca1dc8fd53451d3d16e9f4fc306cddcd4.zip |
Moving various runnables in LauncherModel to individual tasks
> Adding tests for some of the runnable
Change-Id: I1a315d38878857df3371f0e69d622a41fc3b081a
Diffstat (limited to 'src/com/android/launcher3/LauncherAppWidgetInfo.java')
-rw-r--r-- | src/com/android/launcher3/LauncherAppWidgetInfo.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/com/android/launcher3/LauncherAppWidgetInfo.java b/src/com/android/launcher3/LauncherAppWidgetInfo.java index 66d895726..78f5b8edb 100644 --- a/src/com/android/launcher3/LauncherAppWidgetInfo.java +++ b/src/com/android/launcher3/LauncherAppWidgetInfo.java @@ -84,12 +84,12 @@ public class LauncherAppWidgetInfo extends ItemInfo { /** * Indicates the restore status of the widget. */ - int restoreStatus; + public int restoreStatus; /** * Indicates the installation progress of the widget provider */ - int installProgress = -1; + public int installProgress = -1; /** * Optional extras sent during widget bind. See {@link #FLAG_DIRECT_CONFIG}. @@ -98,7 +98,7 @@ public class LauncherAppWidgetInfo extends ItemInfo { private boolean mHasNotifiedInitialWidgetSizeChanged; - LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { + public LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { if (appWidgetId == CUSTOM_WIDGET_ID) { itemType = LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET; } else { @@ -117,6 +117,11 @@ public class LauncherAppWidgetInfo extends ItemInfo { restoreStatus = RESTORE_COMPLETED; } + /** Used for testing **/ + public LauncherAppWidgetInfo() { + itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; + } + public boolean isCustomWidget() { return appWidgetId == CUSTOM_WIDGET_ID; } |