version:1.3.6
fix: update:Android 13全屏
This commit is contained in:
@@ -110,10 +110,29 @@ public class MainActivity extends BaseActivity implements MainContact.MainView,
|
||||
return R.layout.activity_main;
|
||||
}
|
||||
|
||||
private void hideSystemUI() {
|
||||
// Enables regular immersive mode.
|
||||
// For "lean back" mode, remove SYSTEM_UI_FLAG_IMMERSIVE.
|
||||
// Or for "sticky immersive," replace it with SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
View decorView = getWindow().getDecorView();
|
||||
decorView.setSystemUiVisibility(
|
||||
View.SYSTEM_UI_FLAG_IMMERSIVE
|
||||
// Set the content to appear under the system bars so that the
|
||||
// content doesn't resize when the system bars hide and show.
|
||||
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
|
||||
// | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
||||
// Hide the nav bar and status bar
|
||||
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||
| View.SYSTEM_UI_FLAG_FULLSCREEN);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initView() {
|
||||
Log.e(TAG, "initView: ");
|
||||
|
||||
if (Build.VERSION.SDK_INT >= 33) {
|
||||
hideSystemUI();
|
||||
}
|
||||
ButterKnife.bind(this);
|
||||
// toggleNotificationListenerService(this);
|
||||
mPresenter = new MainAPresenter(this);
|
||||
|
||||
Reference in New Issue
Block a user