mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Merge "Clicking on desktop tile brings apps to front" into tm-qpr-dev am: 1236c812f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20249369 Change-Id: I1f1e327666da267638ae98d5f4fd56b935072a88 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -284,11 +284,18 @@ public class DesktopTaskView extends TaskView {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public RunnableList launchTasks() {
|
||||
showDesktopApps();
|
||||
getRecentsView().onTaskLaunchedInLiveTileMode();
|
||||
return new RunnableList();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public RunnableList launchTaskAnimated() {
|
||||
RunnableList endCallback = new RunnableList();
|
||||
SystemUiProxy.INSTANCE.get(getContext()).showDesktopApps();
|
||||
showDesktopApps();
|
||||
RecentsView<?, ?> recentsView = getRecentsView();
|
||||
recentsView.addSideTaskLaunchCallback(endCallback);
|
||||
return endCallback;
|
||||
@@ -296,10 +303,14 @@ public class DesktopTaskView extends TaskView {
|
||||
|
||||
@Override
|
||||
public void launchTask(@NonNull Consumer<Boolean> callback, boolean freezeTaskList) {
|
||||
SystemUiProxy.INSTANCE.get(getContext()).showDesktopApps();
|
||||
showDesktopApps();
|
||||
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