This repository was archived by the owner on Sep 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/main/java/gm/tieba/tabswitch/hooker/add Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ android {
31
31
minSdk = 28
32
32
targetSdk = sdk
33
33
versionCode = gitCommitCount
34
- versionName = " 3.0.0 "
34
+ versionName = " 3.0.1 "
35
35
if (versionName!! .contains(" alpha" ) || versionName!! .contains(" beta" )) {
36
36
versionNameSuffix = " .$commitCountSinceLatestTag "
37
37
}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import android.util.AttributeSet
10
10
import android.util.SparseArray
11
11
import android.view.View
12
12
import android.widget.RelativeLayout
13
+ import de.robv.android.xposed.XposedHelpers
13
14
import gm.tieba.tabswitch.XposedContext
14
15
import gm.tieba.tabswitch.hooker.IHooker
15
16
import gm.tieba.tabswitch.util.dipToPx
@@ -25,7 +26,11 @@ class Ripple : XposedContext(), IHooker {
25
26
26
27
override fun hook () {
27
28
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
+ }
29
34
30
35
// 楼中楼
31
36
val md: Method = try {
You can’t perform that action at this time.
0 commit comments