日夜间模式的切换(修复首页tab日夜间模式切换变色异常) https://git.shanqu.cc/halo/android/assistant-android/-/issues/65
This commit is contained in:
@ -570,7 +570,7 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Easy
|
||||
*
|
||||
* @param view 父 view
|
||||
*/
|
||||
private void updateStaticViewBackground(View view) {
|
||||
protected void updateStaticViewBackground(View view) {
|
||||
if (view instanceof ViewGroup) {
|
||||
for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {
|
||||
View child = ((ViewGroup) view).getChildAt(i);
|
||||
|
||||
@ -1036,4 +1036,10 @@ public class MainActivity extends BaseActivity {
|
||||
protected boolean isAutoResetViewBackgroundEnabled() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void updateStaticViewBackground(View view) {
|
||||
if (mMainWrapperFragment.getCurrentItem() == MainWrapperFragment.INDEX_HOME) return;
|
||||
super.updateStaticViewBackground(view);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user