Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Commit caf23b1

Browse files
committed
fix: Ripple on 12.62
1 parent 0ad7ce9 commit caf23b1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ android {
3131
minSdk = 28
3232
targetSdk = sdk
3333
versionCode = gitCommitCount
34-
versionName = "3.0.0"
34+
versionName = "3.0.1"
3535
if (versionName!!.contains("alpha") || versionName!!.contains("beta")) {
3636
versionNameSuffix = ".$commitCountSinceLatestTag"
3737
}

app/src/main/java/gm/tieba/tabswitch/hooker/add/Ripple.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import android.util.AttributeSet
1010
import android.util.SparseArray
1111
import android.view.View
1212
import android.widget.RelativeLayout
13+
import de.robv.android.xposed.XposedHelpers
1314
import gm.tieba.tabswitch.XposedContext
1415
import gm.tieba.tabswitch.hooker.IHooker
1516
import gm.tieba.tabswitch.util.dipToPx
@@ -25,7 +26,11 @@ class Ripple : XposedContext(), IHooker {
2526

2627
override fun hook() {
2728

28-
val subPbLayoutClass = findClass("com.baidu.tieba.pb.pb.sub.SubPbLayout")
29+
val subPbLayoutClass = try {
30+
findClass("com.baidu.tieba.pb.pb.sub.SubPbLayout")
31+
} catch (e: XposedHelpers.ClassNotFoundError) {
32+
findClass("com.baidu.tieba.pb.sub.view.SubPbLayout")
33+
}
2934

3035
// 楼中楼
3136
val md: Method = try {

0 commit comments

Comments
 (0)