Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit cd32a94

Browse files
committed
rtl fix tabLayout
1 parent 6743628 commit cd32a94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

yanndroid/oneui/src/main/java/de/dlyt/yanndroid/oneui/sesl/tabs/SamsungBaseTabLayout.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,8 @@ public void setScrollPosition(int var1, float var2, boolean var3) {
988988
}
989989

990990
public void setScrollPosition(int var1, float var2, boolean var3, boolean var4) {
991+
if (getResources().getConfiguration().getLayoutDirection() == View.LAYOUT_DIRECTION_RTL)
992+
var1 -= 1;
991993
int var5 = Math.round((float) var1 + var2);
992994
if (var5 >= 0 && var5 < this.slidingTabIndicator.getChildCount()) {
993995
if (var4) {

0 commit comments

Comments
 (0)