fix status bar problem

This commit is contained in:
zhongchao
2022-10-31 19:31:22 +08:00
parent 0b1370eb65
commit 7ab9116e72
5 changed files with 42 additions and 60 deletions

View File

@@ -87,6 +87,12 @@ public abstract class MvpActivity<V extends IView, P extends Presenter<V>> exten
return true;
}
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
BarUtils.hideStatusBarAndSticky(this.getWindow());
}
@Override
protected void onDestroy() {
super.onDestroy();