Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
R3.15.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuunoakaihitomi committed Mar 13, 2022
1 parent b849c0f commit 01801cd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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() + '\"'
Expand Down Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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实现重读配置
}
}
16 changes: 16 additions & 0 deletions app/src/main/res/layout/activity_tuner_placeholder.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@android:string/cancel"
android:textAppearance="@android:style/TextAppearance.Large"
android:textColor="@android:color/holo_red_light"
android:textStyle="bold" />

</LinearLayout>

0 comments on commit 01801cd

Please sign in to comment.