Loading libs/WindowManager/Shell/src/com/android/wm/shell/transition/HomeTransitionObserver.java +4 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.wm.shell.transition; import static android.app.WindowConfiguration.ACTIVITY_TYPE_HOME; import static android.view.Display.DEFAULT_DISPLAY; import static android.window.TransitionInfo.FLAG_BACK_GESTURE_ANIMATED; import static com.android.wm.shell.transition.Transitions.TransitionObserver; Loading @@ -35,7 +36,8 @@ import com.android.wm.shell.util.TransitionUtil; /** * The {@link TransitionObserver} that observes for transitions involving the home * activity. It reports transitions to the caller via {@link IHomeTransitionListener}. * activity on the {@link android.view.Display#DEFAULT_DISPLAY} only. * It reports transitions to the caller via {@link IHomeTransitionListener}. */ public class HomeTransitionObserver implements TransitionObserver, RemoteCallable<HomeTransitionObserver> { Loading @@ -58,6 +60,7 @@ public class HomeTransitionObserver implements TransitionObserver, for (TransitionInfo.Change change : info.getChanges()) { final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo(); if (taskInfo == null || taskInfo.displayId != DEFAULT_DISPLAY || taskInfo.taskId == -1 || !taskInfo.isRunning) { continue; Loading libs/WindowManager/Shell/src/com/android/wm/shell/transition/IHomeTransitionListener.aidl +4 −3 Original line number Diff line number Diff line Loading @@ -20,12 +20,13 @@ import android.window.RemoteTransition; import android.window.TransitionFilter; /** * Listener interface that Launcher attaches to SystemUI to get home activity transition callbacks. * Listener interface that Launcher attaches to SystemUI to get home activity transition callbacks * on the default display. */ interface IHomeTransitionListener { oneway interface IHomeTransitionListener { /** * Called when a transition changes the visibility of the home activity. * Called when a transition changes the visibility of the home activity on the default display. */ void onHomeVisibilityChanged(in boolean isVisible); } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/transition/HomeTransitionObserver.java +4 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.wm.shell.transition; import static android.app.WindowConfiguration.ACTIVITY_TYPE_HOME; import static android.view.Display.DEFAULT_DISPLAY; import static android.window.TransitionInfo.FLAG_BACK_GESTURE_ANIMATED; import static com.android.wm.shell.transition.Transitions.TransitionObserver; Loading @@ -35,7 +36,8 @@ import com.android.wm.shell.util.TransitionUtil; /** * The {@link TransitionObserver} that observes for transitions involving the home * activity. It reports transitions to the caller via {@link IHomeTransitionListener}. * activity on the {@link android.view.Display#DEFAULT_DISPLAY} only. * It reports transitions to the caller via {@link IHomeTransitionListener}. */ public class HomeTransitionObserver implements TransitionObserver, RemoteCallable<HomeTransitionObserver> { Loading @@ -58,6 +60,7 @@ public class HomeTransitionObserver implements TransitionObserver, for (TransitionInfo.Change change : info.getChanges()) { final ActivityManager.RunningTaskInfo taskInfo = change.getTaskInfo(); if (taskInfo == null || taskInfo.displayId != DEFAULT_DISPLAY || taskInfo.taskId == -1 || !taskInfo.isRunning) { continue; Loading
libs/WindowManager/Shell/src/com/android/wm/shell/transition/IHomeTransitionListener.aidl +4 −3 Original line number Diff line number Diff line Loading @@ -20,12 +20,13 @@ import android.window.RemoteTransition; import android.window.TransitionFilter; /** * Listener interface that Launcher attaches to SystemUI to get home activity transition callbacks. * Listener interface that Launcher attaches to SystemUI to get home activity transition callbacks * on the default display. */ interface IHomeTransitionListener { oneway interface IHomeTransitionListener { /** * Called when a transition changes the visibility of the home activity. * Called when a transition changes the visibility of the home activity on the default display. */ void onHomeVisibilityChanged(in boolean isVisible); } Loading