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

Commit 2c7556d4 authored by Jagrut Desai's avatar Jagrut Desai Committed by Android (Google) Code Review
Browse files

Merge "Fix RTL issue with all apps meta icon" into main

parents bd997801 1ab8da20
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -155,7 +155,6 @@ public class TaskbarView extends FrameLayout implements FolderIcon.FolderIconPar
                    .inflate(R.layout.taskbar_all_apps_button, this, false);
            mAllAppsButton.setIconDrawable(resources.getDrawable(
                    getAllAppsButton(isTransientTaskbar)));
            mAllAppsButton.setScaleX(mIsRtl ? -1 : 1);
            mAllAppsButton.setPadding(mItemPadding, mItemPadding, mItemPadding, mItemPadding);
            mAllAppsButton.setForegroundTint(
                    mActivityContext.getColor(R.color.all_apps_button_color));
+4 −0
Original line number Diff line number Diff line
@@ -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];