Changing the widget loading strategy

Widget is loaded only when the user enters the overview mode and we keep
the list updated as long as the user is in the overview mode. Once the user
leaves the overview mode, we stop responding to widget updates

Bug: 26077457
Change-Id: I9e4904b8f1300bfe0d77e2bc5f59aa6963fad8d1
This commit is contained in:
Sunny Goyal
2016-03-03 16:58:55 -08:00
parent 726eb822d3
commit 2e1efb480a
13 changed files with 265 additions and 248 deletions

View File

@@ -397,7 +397,7 @@ public class LauncherStateTransitionAnimation {
// Animate the search bar
final SearchDropTargetBar.State toSearchBarState =
toWorkspaceState.getSearchDropTargetBarState();
toWorkspaceState.searchDropTargetBarState;
mLauncher.getSearchDropTargetBar().animateToState(toSearchBarState,
animated ? revealDuration : 0, animation);