Merge code

This commit is contained in:
2022-03-22 00:12:03 +08:00
parent 5db1671a97
commit a36b1a8ba2
2 changed files with 17 additions and 4 deletions

View File

@@ -80,6 +80,9 @@ class HookEntry : YukiHookXposedInitProxy {
private const val NotificationHeaderViewWrapperInjectorClass =
"$SYSTEMUI_PACKAGE_NAME.statusbar.notification.row.wrapper.NotificationHeaderViewWrapperInjector"
/** MIUI 大部分版本存在的类 */
private const val MiuiClockClass = "$SYSTEMUI_PACKAGE_NAME.statusbar.views.MiuiClock"
/** 原生存在的类 */
private const val ContrastColorUtilClass = "com.android.internal.util.ContrastColorUtil"
@@ -700,6 +703,16 @@ class HookEntry : YukiHookXposedInitProxy {
}
}
}
/** 自动检查通知优化图标更新的注入监听 */
MiuiClockClass.hook {
injectMember {
method { name = "updateTime" }
afterHook {
// TODO 待实现
loggerD(msg = "当前时间:${System.currentTimeMillis()}")
}
}
}
}
}
}

View File

@@ -275,14 +275,14 @@
android:layout_width="15dp"
android:layout_height="15dp"
android:layout_marginEnd="10dp"
android:src="@mipmap/ic_modify" />
android:src="@mipmap/ic_control" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:alpha="0.85"
android:singleLine="true"
android:text="图标调整"
android:text="功能调整"
android:textColor="@color/colorTextGray"
android:textSize="12sp" />
</LinearLayout>
@@ -407,14 +407,14 @@
android:layout_width="15dp"
android:layout_height="15dp"
android:layout_marginEnd="10dp"
android:src="@mipmap/ic_control" />
android:src="@mipmap/ic_modify" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:alpha="0.85"
android:singleLine="true"
android:text="功能调整"
android:text="图标调整"
android:textColor="@color/colorTextGray"
android:textSize="12sp" />
</LinearLayout>