Merge "Set up a place holder tile for desktop" into tm-qpr-dev am: aeea6768e6 am: 98b79c3e11
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19914914 Change-Id: I6b3003aa4b61ff76dfc68bd2a10607b5bb27e9a1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
bcf93ab762
4 files changed
+43
-4
No files matched your search
@@ -58,6 +58,7 @@ import com.android.systemui.shared.system.smartspace.ILauncherUnlockAnimationCon
|
||||
import com.android.systemui.shared.system.smartspace.ISysuiUnlockAnimationController;
|
||||
import com.android.systemui.shared.system.smartspace.SmartspaceState;
|
||||
import com.android.wm.shell.back.IBackAnimation;
|
||||
import com.android.wm.shell.desktopmode.IDesktopMode;
|
||||
import com.android.wm.shell.floating.IFloatingTasks;
|
||||
import com.android.wm.shell.onehanded.IOneHanded;
|
||||
import com.android.wm.shell.pip.IPip;
|
||||
@@ -95,6 +96,7 @@ public class SystemUiProxy implements ISystemUiProxy {
|
||||
private IStartingWindow mStartingWindow;
|
||||
private IRecentTasks mRecentTasks;
|
||||
private IBackAnimation mBackAnimation;
|
||||
private IDesktopMode mDesktopMode;
|
||||
private final DeathRecipient mSystemUiProxyDeathRecipient = () -> {
|
||||
MAIN_EXECUTOR.execute(() -> clearProxy());
|
||||
};
|
||||
@@ -170,7 +172,7 @@ public class SystemUiProxy implements ISystemUiProxy {
|
||||
IFloatingTasks floatingTasks, IOneHanded oneHanded, IShellTransitions shellTransitions,
|
||||
IStartingWindow startingWindow, IRecentTasks recentTasks,
|
||||
ISysuiUnlockAnimationController sysuiUnlockAnimationController,
|
||||
IBackAnimation backAnimation) {
|
||||
IBackAnimation backAnimation, IDesktopMode desktopMode) {
|
||||
unlinkToDeath();
|
||||
mSystemUiProxy = proxy;
|
||||
mPip = pip;
|
||||
@@ -182,6 +184,7 @@ public class SystemUiProxy implements ISystemUiProxy {
|
||||
mSysuiUnlockAnimationController = sysuiUnlockAnimationController;
|
||||
mRecentTasks = recentTasks;
|
||||
mBackAnimation = backAnimation;
|
||||
mDesktopMode = desktopMode;
|
||||
linkToDeath();
|
||||
// re-attach the listeners once missing due to setProxy has not been initialized yet.
|
||||
if (mPipAnimationListener != null && mPip != null) {
|
||||
@@ -209,7 +212,7 @@ public class SystemUiProxy implements ISystemUiProxy {
|
||||
}
|
||||
|
||||
public void clearProxy() {
|
||||
setProxy(null, null, null, null, null, null, null, null, null, null);
|
||||
setProxy(null, null, null, null, null, null, null, null, null, null, null);
|
||||
}
|
||||
|
||||
// TODO(141886704): Find a way to remove this
|
||||
@@ -954,4 +957,19 @@ public class SystemUiProxy implements ISystemUiProxy {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//
|
||||
// Desktop Mode
|
||||
//
|
||||
|
||||
/** Call shell to show all apps active on the desktop */
|
||||
public void showDesktopApps() {
|
||||
if (mDesktopMode != null) {
|
||||
try {
|
||||
mDesktopMode.showDesktopApps();
|
||||
} catch (RemoteException e) {
|
||||
Log.w(TAG, "Failed call showDesktopApps", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user