Merge "Fixes a bug where the user ends in freescroll state even for regular workspace mode." into ub-launcher3-master

This commit is contained in:
Mario Bertschler authored and Android (Google) Code Review committed 2016-12-29 23:33:01 +00:00
commit 83d40e0608
2 files changed
+20 -12

No files matched your search

+10
View File
@@ -4103,6 +4103,16 @@ public class Workspace extends PagedView
}
}
@Override
public boolean enableFreeScroll() {
if (getState() == State.OVERVIEW) {
return super.enableFreeScroll();
} else {
Log.w(TAG, "enableFreeScroll called but not in overview: state=" + getState());
return false;
}
}
/**
* Used as a workaround to ensure that the AppWidgetService receives the
* PACKAGE_ADDED broadcast before updating widgets.