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