shell fitsSystemWindows

This commit is contained in:
ShirosakiMio 2023-07-31 17:47:29 +08:00
parent f0320dfdfe
commit ee9ea21eef
2 changed files with 1 additions and 15 deletions

View File

@ -53,21 +53,6 @@ public class ShellActivity extends FCLActivity {
if (cmd.contains("clear")) { if (cmd.contains("clear")) {
logWindow.cleanLog(); logWindow.cleanLog();
return; return;
} else if (cmd.contains("启用隐藏主题")) {
return;
} else if (cmd.contains("fullscreen")) {
Theme theme = Theme.getTheme(ShellActivity.this);
if (cmd.contains("true")) {
theme.setFullscreen(true);
Theme.saveTheme(ShellActivity.this, theme);
logWindow.appendLog("fullscreen=true\n");
} else if (cmd.contains("false")) {
theme.setFullscreen(false);
Theme.saveTheme(ShellActivity.this, theme);
logWindow.appendLog("fullscreen=false\n");
}
return;
} }
shellUtil.append(cmd); shellUtil.append(cmd);
} }

View File

@ -4,6 +4,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/white" android:background="@color/white"
android:fitsSystemWindows="true"
app:auto_constraint_background_tint="true"> app:auto_constraint_background_tint="true">
<com.tungsten.fcllibrary.component.view.FCLEditText <com.tungsten.fcllibrary.component.view.FCLEditText