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

Commit 03045282 authored by shawnlin's avatar shawnlin
Browse files

Add a method to trigger the navigation bar animation in system

Bug: 189278432
Test: build
Change-Id: I9795c4cde805fdca29de3708e2d77f12932a1066
parent ebcaa39d
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -152,4 +152,15 @@ public class RecentsAnimationControllerCompat {
            Log.e(TAG, "Failed to detach the navigation bar from app", e);
        }
    }

    /**
     * @see IRecentsAnimationController#animateNavigationBarToApp(long)
     */
    public void animateNavigationBarToApp(long duration) {
        try {
            mAnimationController.animateNavigationBarToApp(duration);
        } catch (RemoteException e) {
            Log.e(TAG, "Failed to animate the navigation bar to app", e);
        }
    }
}