fix: 調整多語言時,禮物面板 tab 的默認方向
This commit is contained in:
@@ -776,10 +776,11 @@ public class GiftDialog extends BottomSheetDialog implements View.OnClickListene
|
||||
updateWeekStarDesc();
|
||||
updateDrawGift();
|
||||
giftIndicator.post(() -> {
|
||||
boolean isRTL = UiUtils.INSTANCE.isRtl(getContext());
|
||||
if (position < TYPE_WEEK) {
|
||||
giftIndicator.fullScroll(View.FOCUS_LEFT);
|
||||
giftIndicator.fullScroll(isRTL ? View.FOCUS_RIGHT : View.FOCUS_LEFT);
|
||||
} else {
|
||||
giftIndicator.fullScroll(View.FOCUS_RIGHT);
|
||||
giftIndicator.fullScroll(isRTL ? View.FOCUS_LEFT : View.FOCUS_RIGHT);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user