From 50f9b82ac862652e88444d727a32e0da1d824e9e Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期一, 13 一月 2025 15:57:06 +0800 Subject: [PATCH] 1.分水房相关 2.删除极光推送相关配置 3.优化图片显示相关 --- app/src/main/java/com/dayu/pipirrapp/activity/MainActivity.java | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/dayu/pipirrapp/activity/MainActivity.java b/app/src/main/java/com/dayu/pipirrapp/activity/MainActivity.java index c1650a9..f421db1 100644 --- a/app/src/main/java/com/dayu/pipirrapp/activity/MainActivity.java +++ b/app/src/main/java/com/dayu/pipirrapp/activity/MainActivity.java @@ -1,7 +1,5 @@ package com.dayu.pipirrapp.activity; -import static androidx.core.content.ContextCompat.getSystemService; - import android.app.Notification; import android.app.NotificationChannel; import android.app.NotificationManager; @@ -148,6 +146,7 @@ binding.viewPager.setCurrentItem(1, false); // 榛樿鏄剧ず鍦板浘椤� binding.viewPager.setOffscreenPageLimit(fragments.size()); binding.viewPager.setUserInputEnabled(false); + } @Override @@ -199,7 +198,12 @@ * 鏇存柊鏌愪釜 Tab 鐨� UI 鐘舵�� */ private void updateTabUI(int position, int iconResId, int textColorResId) { - binding.viewPager.setCurrentItem(position); + if (position == 1) { + binding.viewPager.setCurrentItem(position, true); + } else { + binding.viewPager.setCurrentItem(position, false); + } + switch (position) { case 0: binding.orderImg.setImageDrawable(ContextCompat.getDrawable(this, iconResId)); -- Gitblit v1.8.0