diff --git a/app/build.gradle.kts b/app/build.gradle.kts index d619b027..4fe573d9 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -12,8 +12,8 @@ android { applicationId = "com.lt2333.simplicitytools" minSdk = 30 targetSdk = 32 - versionCode = 10 - versionName = "1.0.9" + versionCode = 11 + versionName = "1.1.0" } buildTypes { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 612ac5b4..e9b21a37 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -7,6 +7,7 @@ android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:label="@string/app_name" + android:theme="@style/AppTheme" android:supportsRtl="true" > { return ArrayList().apply { - add(TextSummaryV(textId = R.string.reboot_ui, onClickListener = { - MIUIDialog(activity).apply { - setTitle(R.string.Tips) - setMessage("确定重启系统界面?") - setLButton("取消") { - dismiss() - } - setRButton("确定") { - val command = arrayOf("killall com.android.systemui") - ShellUtils.execCommand(command, true) - dismiss() - } - show() - } - })) add(TextSummaryV(textId = R.string.reboot, onClickListener = { MIUIDialog(activity).apply { setTitle(R.string.Tips) @@ -160,6 +145,22 @@ class SettingsActivity : MIUIActivity() { show() } })) + add(TextSummaryV(textId = R.string.reboot_ui, onClickListener = { + MIUIDialog(activity).apply { + setTitle(R.string.Tips) + setMessage("确定重启系统界面?") + setLButton("取消") { + dismiss() + } + setRButton("确定") { + val command = arrayOf("killall com.android.systemui") + ShellUtils.execCommand(command, true) + dismiss() + } + show() + } + })) + } } diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml deleted file mode 100644 index 6a6931e9..00000000 --- a/app/src/main/res/values-night/themes.xml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml new file mode 100644 index 00000000..a9a49e44 --- /dev/null +++ b/app/src/main/res/values/styles.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml deleted file mode 100644 index 6a6931e9..00000000 --- a/app/src/main/res/values/themes.xml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 1062c4e5..3bf8fd8d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath("com.android.tools.build:gradle:7.0.4") + classpath("com.android.tools.build:gradle:7.1.1") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10") // NOTE: Do not place your application dependencies here; they belong