From ee9ea21eefebbb5111267e8732d314456f89b29f Mon Sep 17 00:00:00 2001 From: ShirosakiMio <852468399@qq.com> Date: Mon, 31 Jul 2023 17:47:29 +0800 Subject: [PATCH] shell fitsSystemWindows --- .../com/tungsten/fcl/activity/ShellActivity.java | 15 --------------- FCL/src/main/res/layout/activity_shell.xml | 1 + 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/FCL/src/main/java/com/tungsten/fcl/activity/ShellActivity.java b/FCL/src/main/java/com/tungsten/fcl/activity/ShellActivity.java index a8d82001..d90d4f69 100644 --- a/FCL/src/main/java/com/tungsten/fcl/activity/ShellActivity.java +++ b/FCL/src/main/java/com/tungsten/fcl/activity/ShellActivity.java @@ -53,21 +53,6 @@ public class ShellActivity extends FCLActivity { if (cmd.contains("clear")) { logWindow.cleanLog(); 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); } diff --git a/FCL/src/main/res/layout/activity_shell.xml b/FCL/src/main/res/layout/activity_shell.xml index 4f5cf360..0e41a249 100644 --- a/FCL/src/main/res/layout/activity_shell.xml +++ b/FCL/src/main/res/layout/activity_shell.xml @@ -4,6 +4,7 @@ android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" android:background="@color/white" + android:fitsSystemWindows="true" app:auto_constraint_background_tint="true">