Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31b71a0c authored by Shawn Lin's avatar Shawn Lin Committed by Android (Google) Code Review
Browse files

Merge "Add a new method to notify system to detach the nav bar"

parents 2aab6707 15900d8a
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -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();
}
}
+11 −0
Original line number Original line Diff line number Diff line
@@ -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
+3 −0
Original line number Original line Diff line number Diff line
@@ -364,6 +364,9 @@ public class RecentsAnimationController implements DeathRecipient {
                Binder.restoreCallingIdentity(token);
                Binder.restoreCallingIdentity(token);
            }
            }
        }
        }

        @Override
        public void detachNavigationBarFromApp() {}
    };
    };


    /**
    /**