Fix RTL issue with all apps meta icon

Test: Presubmit, Manual
Bug: 309453796
Flag: NONE
Change-Id: I5d8bda2c48a0815d7005a0727f67f871f75d4f0f
This commit is contained in:
Jagrut Desai
2023-11-10 09:40:20 -08:00
parent d66d114944
commit 1ab8da20f5
2 changed files with 4 additions and 1 deletions

View File

@@ -367,6 +367,10 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
float allAppIconTranslateRange = mapRange(scale, transientTaskbarAllAppsOffset,
persistentTaskbarAllAppsOffset);
if (mIsRtl) {
allAppIconTranslateRange *= -1;
}
float halfIconCount = iconViews.length / 2.0f;
for (int iconIndex = 0; iconIndex < iconViews.length; iconIndex++) {
View iconView = iconViews[iconIndex];