Skip to content

Commit

Permalink
fix: SimplifyQQSettingMe
Browse files Browse the repository at this point in the history
  • Loading branch information
lliioollcn committed Dec 21, 2024
1 parent 1e1a757 commit 00c43df
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,13 @@ object SimplifyQQSettingMe :
// val parent=param.thisObject.javaClass.declaredFields.first {
// it.javaClass==ViewGroup::class.java && (it.get(param.thisObject) as ViewGroup).childCount>=14
// }.get(param.thisObject) as ViewGroup
val parent = param.thisObject.get("h") as ViewGroup
// val parent = param.thisObject.get("h") as ViewGroup
val parent = param.thisObject.javaClass.declaredFields.lastOrNull {
it.type == ViewGroup::class.java
}?.let {
it.isAccessible = true
it.get(param.thisObject)
} as ViewGroup
parent.children.forEach {
if (!it.isClickable) it.setViewZeroSize()
}
Expand Down

0 comments on commit 00c43df

Please sign in to comment.