mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
This CL changes how the layoutDirection of the App Chip is handled and update translations in the PagedViewHandler for the app chip for fake orientation. - The App Chip was updated to use the device layoutDirection instead of the same of RecentsView. This prevents the app chip being displayed in RTL when the device is LTR and vice-versa. - It also applies the correct layout direction to `IconAppChipView` and its related views to ensure proper RTL behavior. - RecentsView now updates layoutDirection for its children when updateChildTaskOrientation is called. This will make sure its children have the the latest and the correct layoutDirection.. Before it was only applied when adding a view (addView). - In `SeascapePagedViewHandler`, it adjust the gravity for app chip be aligned correctly in Seascape. - In `GroupedTaskView`, it checks if the device is in RTL to align the app chip correctly for split tasks. - Multiple test combinations were done to validate this fix, please see table in b/326377497#comment7. Fix: 326377497 Bug: 403284758 Flag: com.android.launcher3.enable_overview_icon_menu Test: Manual, please check b/326377497#comment7. Test: OverviewImageTest Test: OverviewSplitTaskImageTest Change-Id: I8e8050ccf58c3f90718a48773ee7e32ddbc00f13