OSDN Git Service

Adding support to restore widgets even for jelly beans.
authorSunny Goyal <sunnygoyal@google.com>
Wed, 23 Jul 2014 20:58:07 +0000 (13:58 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Fri, 8 Aug 2014 21:29:02 +0000 (14:29 -0700)
commitff572277112ec3d6a6a8c1be274d6fa1019e3648
tree85212d0b7f7b217beb80892917ea88a7ac180947
parent6075170b838bfe7a040bbff25c2c22859b7d6ee5
Adding support to restore widgets even for jelly beans.

> Show 'widget-not-ready' until the widget app is installed
> Once the app is installed, bind a new widget id (not required on L if
  id-remap was received).
  **Remove the widget if bind failed
> If the widget has no configuration screen, show the widget, otherwise
  show 'setup-widget'.
> Clicking 'setup-widget' shows the config screen, and updates the
  widget on RESULT_OK.

issue: 10779035

Change-Id: I2f8b06d09dd6acbc498cdd93edc59c26e5ce17af
res/values/strings.xml
src/com/android/launcher3/AppWidgetsRestoredReceiver.java
src/com/android/launcher3/AppsCustomizePagedView.java
src/com/android/launcher3/ItemInfo.java
src/com/android/launcher3/Launcher.java
src/com/android/launcher3/LauncherAppWidgetHostView.java
src/com/android/launcher3/LauncherAppWidgetInfo.java
src/com/android/launcher3/LauncherBackupHelper.java
src/com/android/launcher3/LauncherModel.java
src/com/android/launcher3/PendingAppWidgetHostView.java [new file with mode: 0644]
src/com/android/launcher3/Workspace.java