Loading core/java/android/view/IRecentsAnimationController.aidl +9 −0 Original line number Original line Diff line number Diff line Loading @@ -136,4 +136,13 @@ interface IRecentsAnimationController { * @return {@code true} when target removed successfully, {@code false} otherwise. * @return {@code true} when target removed successfully, {@code false} otherwise. */ */ boolean removeTask(int taskId); boolean removeTask(int taskId); /** * Detach navigation bar from app. * * The system reparents the leash of navigation bar to the app when the recents animation starts * and Launcher should call this method to let system restore the navigation bar to its * original position when the quick switch gesture is finished. */ void detachNavigationBarFromApp(); } } packages/SystemUI/shared/src/com/android/systemui/shared/system/RecentsAnimationControllerCompat.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -137,4 +137,15 @@ public class RecentsAnimationControllerCompat { return false; return false; } } } } /** * @see IRecentsAnimationController#detachNavigationBarFromApp */ public void detachNavigationBarFromApp() { try { mAnimationController.detachNavigationBarFromApp(); } catch (RemoteException e) { Log.e(TAG, "Failed to detach the navigation bar from app", e); } } } } No newline at end of file services/core/java/com/android/server/wm/RecentsAnimationController.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -364,6 +364,9 @@ public class RecentsAnimationController implements DeathRecipient { Binder.restoreCallingIdentity(token); Binder.restoreCallingIdentity(token); } } } } @Override public void detachNavigationBarFromApp() {} }; }; /** /** Loading Loading
core/java/android/view/IRecentsAnimationController.aidl +9 −0 Original line number Original line Diff line number Diff line Loading @@ -136,4 +136,13 @@ interface IRecentsAnimationController { * @return {@code true} when target removed successfully, {@code false} otherwise. * @return {@code true} when target removed successfully, {@code false} otherwise. */ */ boolean removeTask(int taskId); boolean removeTask(int taskId); /** * Detach navigation bar from app. * * The system reparents the leash of navigation bar to the app when the recents animation starts * and Launcher should call this method to let system restore the navigation bar to its * original position when the quick switch gesture is finished. */ void detachNavigationBarFromApp(); } }
packages/SystemUI/shared/src/com/android/systemui/shared/system/RecentsAnimationControllerCompat.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -137,4 +137,15 @@ public class RecentsAnimationControllerCompat { return false; return false; } } } } /** * @see IRecentsAnimationController#detachNavigationBarFromApp */ public void detachNavigationBarFromApp() { try { mAnimationController.detachNavigationBarFromApp(); } catch (RemoteException e) { Log.e(TAG, "Failed to detach the navigation bar from app", e); } } } } No newline at end of file
services/core/java/com/android/server/wm/RecentsAnimationController.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -364,6 +364,9 @@ public class RecentsAnimationController implements DeathRecipient { Binder.restoreCallingIdentity(token); Binder.restoreCallingIdentity(token); } } } } @Override public void detachNavigationBarFromApp() {} }; }; /** /** Loading