fix: 調整多語言時,點擊 tab 的移動判斷
This commit is contained in:
@@ -777,7 +777,9 @@ public class GiftDialog extends BottomSheetDialog implements View.OnClickListene
|
||||
updateDrawGift();
|
||||
giftIndicator.post(() -> {
|
||||
boolean isRTL = UiUtils.INSTANCE.isRtl(getContext());
|
||||
if (position < TYPE_WEEK) {
|
||||
// if (position < TYPE_WEEK) { GiftModel.get().getTabList().size()/2;
|
||||
int centerIndex = GiftModel.get().getTabList().size()/2;
|
||||
if (position < centerIndex) {
|
||||
giftIndicator.fullScroll(isRTL ? View.FOCUS_RIGHT : View.FOCUS_LEFT);
|
||||
} else {
|
||||
giftIndicator.fullScroll(isRTL ? View.FOCUS_LEFT : View.FOCUS_RIGHT);
|
||||
|
Reference in New Issue
Block a user