diff --git a/app/build.gradle b/app/build.gradle index 8681df2..54f2ec5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -21,10 +21,10 @@ android { //targetSdkVersion compileSdkVersion targetSdkVersion 32 // 版本号:发布日期 - versionCode 20220306 + versionCode 20220313 // 版本名说明: R3.x.y.z (R3:Refactoring 第三次重构,z:Quick Fix序号) // 不要包含非ASCII可打印字符,会导致Github release文件名异常 - versionName 'R3.15.4' + versionName 'R3.15.5' resConfigs "en", "zh-rCN" buildConfigField 'String', 'BUILD_TIME', '\"' + new Date() + '\"' @@ -207,7 +207,7 @@ dependencies { implementation 'dev.rikka.rikkax.compatibility:compatibility:2.0.0' // https://github.com/KyuubiRan/EzXHelper - implementation 'com.github.kyuubiran:EzXHelper:0.7.4' + implementation 'com.github.kyuubiran:EzXHelper:0.7.5' // https://github.com/square/leakcanary debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.8.1' diff --git a/app/src/main/java/github/ryuunoakaihitomi/powerpanel/ui/tuner/UiTunerActivity.kt b/app/src/main/java/github/ryuunoakaihitomi/powerpanel/ui/tuner/UiTunerActivity.kt index 86f0eb9..305ae80 100644 --- a/app/src/main/java/github/ryuunoakaihitomi/powerpanel/ui/tuner/UiTunerActivity.kt +++ b/app/src/main/java/github/ryuunoakaihitomi/powerpanel/ui/tuner/UiTunerActivity.kt @@ -3,8 +3,9 @@ package github.ryuunoakaihitomi.powerpanel.ui.tuner import android.os.Bundle import androidx.annotation.Keep import androidx.appcompat.app.AppCompatActivity +import com.github.kyuubiran.ezxhelper.utils.showToast +import github.ryuunoakaihitomi.powerpanel.databinding.ActivityTunerPlaceholderBinding import github.ryuunoakaihitomi.powerpanel.stat.Statistics -import github.ryuunoakaihitomi.powerpanel.util.uiLog import kotlin.system.exitProcess class UiTunerActivity : AppCompatActivity() { @@ -22,13 +23,13 @@ class UiTunerActivity : AppCompatActivity() { .commit() Statistics.logXposedEnabled() } else { - uiLog("Xposed required") - finish() + setContentView(ActivityTunerPlaceholderBinding.inflate(layoutInflater).root) + showToast("Xposed required") } } override fun onDestroy() { super.onDestroy() - if (hookedByXposed) exitProcess(0) // 自杀让lsposed实现生效 + exitProcess(0) // 自杀让lsposed实现重读配置 } } \ No newline at end of file diff --git a/app/src/main/res/layout/activity_tuner_placeholder.xml b/app/src/main/res/layout/activity_tuner_placeholder.xml new file mode 100644 index 0000000..8a58ac3 --- /dev/null +++ b/app/src/main/res/layout/activity_tuner_placeholder.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file