mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-05 18:25:23 +08:00
fix: some problem in MIUI 14 (14.0.4) Android 14
This commit is contained in:
@@ -732,9 +732,9 @@ object SystemUIHooker : YukiBaseHooker() {
|
||||
*/
|
||||
private fun Any?.getSbn() =
|
||||
ExpandableNotificationRowClass
|
||||
.method { name = "getEntry" }
|
||||
.get(this).call()
|
||||
?.current(ignored = true)
|
||||
.field { name = "mEntry" }
|
||||
.get(this)
|
||||
.current(ignored = true)
|
||||
?.field { name = "mSbn" }
|
||||
?.cast<StatusBarNotification>()
|
||||
?: ExpandableNotificationRowClass
|
||||
@@ -843,7 +843,11 @@ object SystemUIHooker : YukiBaseHooker() {
|
||||
param { it[0] extends StatusBarNotificationClass }
|
||||
}.hookAll().replaceToFalse()
|
||||
var isUseLegacy = false
|
||||
/** 强制回写系统的状态栏图标样式为原生 */
|
||||
/**
|
||||
* 强制回写系统的状态栏图标样式为原生
|
||||
* 部分系统没有 "getSmallIcon" 这个方法 - 所以直接忽略
|
||||
*/
|
||||
if (hasMethod { name = "getSmallIcon" })
|
||||
method {
|
||||
name = "getSmallIcon"
|
||||
param { it[0] extends StatusBarNotificationClass && it[1] == IntType }
|
||||
|
Reference in New Issue
Block a user