mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-06 02:35:32 +08:00
Update YukiHookAPI
This commit is contained in:
@@ -72,8 +72,8 @@ tasks.whenTaskAdded {
|
||||
|
||||
dependencies {
|
||||
compileOnly 'de.robv.android.xposed:api:82'
|
||||
implementation 'com.highcapable.yukihookapi:api:1.0.6'
|
||||
ksp 'com.highcapable.yukihookapi:ksp-xposed:1.0.6'
|
||||
implementation 'com.highcapable.yukihookapi:api:1.0.65'
|
||||
ksp 'com.highcapable.yukihookapi:ksp-xposed:1.0.65'
|
||||
implementation "com.github.topjohnwu.libsu:core:3.1.2"
|
||||
implementation 'androidx.annotation:annotation:1.3.0'
|
||||
implementation 'com.geyifeng.immersionbar:immersionbar:3.2.0'
|
||||
|
@@ -194,7 +194,7 @@ class HookEntry : YukiHookXposedInitProxy {
|
||||
}.get(it.method {
|
||||
name = "getInstance"
|
||||
param(ContextClass)
|
||||
}.get().invoke(context)).invoke<Boolean>(drawable) ?: false
|
||||
}.get().invoke(context)).callBoolean(drawable)
|
||||
}
|
||||
} else BitmapCompatTool.isGrayscaleDrawable(drawable)
|
||||
|
||||
@@ -656,7 +656,7 @@ class HookEntry : YukiHookXposedInitProxy {
|
||||
* 图标在任何场景下跟随状态栏其它图标保持半透明
|
||||
* MIUI 12 进行单独判断
|
||||
*/
|
||||
field { name = "mCurrentSetColor" }.of<Int>(instance)?.also { color ->
|
||||
field { name = "mCurrentSetColor" }.ofInt(instance).also { color ->
|
||||
if (safeOfFalse {
|
||||
NotificationUtilClass.clazz.hasMethod(
|
||||
name = "ignoreStatusBarIconColor",
|
||||
@@ -755,7 +755,7 @@ class HookEntry : YukiHookXposedInitProxy {
|
||||
isExpanded = ExpandableNotificationRowClass.clazz.method {
|
||||
name = "isExpanded"
|
||||
returnType = BooleanType
|
||||
}.get(it).invoke<Boolean>() == true
|
||||
}.get(it).callBoolean()
|
||||
}).call()?.let {
|
||||
it.javaClass.method {
|
||||
name = "getSbn"
|
||||
|
Reference in New Issue
Block a user