version:1.3.6

fix:
update:Android 13全屏
This commit is contained in:
2023-04-28 10:53:18 +08:00
parent 3346ffca88
commit 3e44bb0c63
3 changed files with 49 additions and 14 deletions

View File

@@ -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);

View File

@@ -1,5 +1,6 @@
<resources>
<string name="app_name">智慧课堂</string>
<!-- <string name="app_name">教育中心</string>-->
<!-- <string name="app_name">智慧课堂</string>-->
<string name="privacy_agreement"><u>隐私协议</u></string>
<string name="privacy_agreement_title">服务协议和隐私政策</string>