| | |
| | | package com.dayu.pipirrapp.activity; |
| | | |
| | | import static androidx.core.content.ContextCompat.getSystemService; |
| | | |
| | | import android.app.Notification; |
| | | import android.app.NotificationChannel; |
| | | import android.app.NotificationManager; |
| | |
| | | * 更新某个 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)); |