Merge "Fix task bar crashing in small screen with task bar / nav bar unification on" into main

This commit is contained in:
Tracy Zhou
2023-10-09 20:26:25 +00:00
committed by Android (Google) Code Review
@@ -458,7 +458,7 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
*/
private AnimatorPlaybackController createIconAlignmentController(DeviceProfile launcherDp) {
PendingAnimation setter = new PendingAnimation(100);
if (TaskbarManager.isPhoneButtonNavMode(mActivity)) {
if (TaskbarManager.isPhoneMode(launcherDp)) {
// No animation for icons in small-screen
return setter.createPlaybackController();
}