mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 19:31:17 +08:00
更新版本号至1.1.0
This commit is contained in:
@@ -12,8 +12,8 @@ android {
|
|||||||
applicationId = "com.lt2333.simplicitytools"
|
applicationId = "com.lt2333.simplicitytools"
|
||||||
minSdk = 30
|
minSdk = 30
|
||||||
targetSdk = 32
|
targetSdk = 32
|
||||||
versionCode = 10
|
versionCode = 11
|
||||||
versionName = "1.0.9"
|
versionName = "1.1.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:roundIcon="@mipmap/ic_launcher_round"
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
|
android:theme="@style/AppTheme"
|
||||||
android:supportsRtl="true" >
|
android:supportsRtl="true" >
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.SettingsActivity"
|
android:name=".activity.SettingsActivity"
|
||||||
|
|||||||
@@ -130,21 +130,6 @@ class SettingsActivity : MIUIActivity() {
|
|||||||
|
|
||||||
override fun menuItems(): ArrayList<BaseView> {
|
override fun menuItems(): ArrayList<BaseView> {
|
||||||
return ArrayList<BaseView>().apply {
|
return ArrayList<BaseView>().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 = {
|
add(TextSummaryV(textId = R.string.reboot, onClickListener = {
|
||||||
MIUIDialog(activity).apply {
|
MIUIDialog(activity).apply {
|
||||||
setTitle(R.string.Tips)
|
setTitle(R.string.Tips)
|
||||||
@@ -160,6 +145,22 @@ class SettingsActivity : MIUIActivity() {
|
|||||||
show()
|
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()
|
||||||
|
}
|
||||||
|
}))
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
<resources />
|
|
||||||
10
app/src/main/res/values/styles.xml
Normal file
10
app/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
<style name="AppTheme" parent="android:Theme.Material.Light.NoActionBar">
|
||||||
|
|
||||||
|
<item name="android:textColor">@color/black</item>
|
||||||
|
<item name="android:statusBarColor">@color/white</item>
|
||||||
|
<item name="android:windowLightStatusBar" tools:targetApi="m">true</item>
|
||||||
|
<item name="android:forceDarkAllowed" tools:targetApi="Q">true</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
||||||
@@ -1 +0,0 @@
|
|||||||
<resources />
|
|
||||||
@@ -5,7 +5,7 @@ buildscript {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
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")
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10")
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
|||||||
Reference in New Issue
Block a user