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

Commit

Permalink
fix: Ripple on 12.62
Browse files Browse the repository at this point in the history
  • Loading branch information
mkx173 committed Jun 5, 2024
1 parent 0ad7ce9 commit caf23b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ android {
minSdk = 28
targetSdk = sdk
versionCode = gitCommitCount
versionName = "3.0.0"
versionName = "3.0.1"
if (versionName!!.contains("alpha") || versionName!!.contains("beta")) {
versionNameSuffix = ".$commitCountSinceLatestTag"
}
Expand Down
7 changes: 6 additions & 1 deletion app/src/main/java/gm/tieba/tabswitch/hooker/add/Ripple.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import android.util.AttributeSet
import android.util.SparseArray
import android.view.View
import android.widget.RelativeLayout
import de.robv.android.xposed.XposedHelpers
import gm.tieba.tabswitch.XposedContext
import gm.tieba.tabswitch.hooker.IHooker
import gm.tieba.tabswitch.util.dipToPx
Expand All @@ -25,7 +26,11 @@ class Ripple : XposedContext(), IHooker {

override fun hook() {

val subPbLayoutClass = findClass("com.baidu.tieba.pb.pb.sub.SubPbLayout")
val subPbLayoutClass = try {
findClass("com.baidu.tieba.pb.pb.sub.SubPbLayout")
} catch (e: XposedHelpers.ClassNotFoundError) {
findClass("com.baidu.tieba.pb.sub.view.SubPbLayout")
}

// 楼中楼
val md: Method = try {
Expand Down

0 comments on commit caf23b1

Please sign in to comment.