mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Add settled/unsettled state information to launcher
Bug: 10789736 Bug: 10785435 Change-Id: I876707103d495f4a8e55909af63c75da210fefde
This commit is contained in:
@@ -361,6 +361,7 @@ public class Workspace extends SmoothPagedView
|
||||
mIsDragOccuring = true;
|
||||
updateChildrenLayersEnabled(false);
|
||||
mLauncher.lockScreenOrientation();
|
||||
mLauncher.onInteractionBegin();
|
||||
setChildrenBackgroundAlphaMultipliers(1f);
|
||||
// Prevent any Un/InstallShortcutReceivers from updating the db while we are dragging
|
||||
InstallShortcutReceiver.enableInstallQueue();
|
||||
@@ -386,6 +387,7 @@ public class Workspace extends SmoothPagedView
|
||||
|
||||
removeExtraEmptyScreen();
|
||||
mDragSourceInternal = null;
|
||||
mLauncher.onInteractionEnd();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1737,15 +1739,18 @@ public class Workspace extends SmoothPagedView
|
||||
}
|
||||
|
||||
public void enterOverviewMode() {
|
||||
mLauncher.onInteractionBegin();
|
||||
enableOverviewMode(true, -1, true);
|
||||
}
|
||||
|
||||
public void exitOverviewMode(boolean animated) {
|
||||
exitOverviewMode(-1, animated);
|
||||
mLauncher.onInteractionEnd();
|
||||
}
|
||||
|
||||
public void exitOverviewMode(int snapPage, boolean animated) {
|
||||
enableOverviewMode(false, snapPage, animated);
|
||||
mLauncher.onInteractionEnd();
|
||||
}
|
||||
|
||||
private void enableOverviewMode(boolean enable, int snapPage, boolean animated) {
|
||||
|
||||
Reference in New Issue
Block a user