mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Merge "Set launcher state to NORMAL when entering desktop" into tm-qpr-dev am: d98c88b4e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20283582 Change-Id: I08c94a466986c0fa1b684514d4daaf6c296ea5f6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -286,31 +286,23 @@ public class DesktopTaskView extends TaskView {
|
||||
|
||||
@Override
|
||||
public RunnableList launchTasks() {
|
||||
showDesktopApps();
|
||||
getRecentsView().onTaskLaunchedInLiveTileMode();
|
||||
SystemUiProxy.INSTANCE.get(getContext()).showDesktopApps();
|
||||
getRecentsView().startHome();
|
||||
return new RunnableList();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public RunnableList launchTaskAnimated() {
|
||||
RunnableList endCallback = new RunnableList();
|
||||
showDesktopApps();
|
||||
RecentsView<?, ?> recentsView = getRecentsView();
|
||||
recentsView.addSideTaskLaunchCallback(endCallback);
|
||||
return endCallback;
|
||||
return launchTasks();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void launchTask(@NonNull Consumer<Boolean> callback, boolean freezeTaskList) {
|
||||
showDesktopApps();
|
||||
launchTasks();
|
||||
callback.accept(true);
|
||||
}
|
||||
|
||||
private void showDesktopApps() {
|
||||
SystemUiProxy.INSTANCE.get(getContext()).showDesktopApps();
|
||||
}
|
||||
|
||||
@Override
|
||||
void refreshThumbnails(@Nullable HashMap<Integer, ThumbnailData> thumbnailDatas) {
|
||||
// Sets new thumbnails based on the incoming data and refreshes the rest.
|
||||
|
||||
Reference in New Issue
Block a user