mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-07 03:05:51 +08:00
Merge code
This commit is contained in:
@@ -367,8 +367,7 @@ class SystemUIHooker : YukiBaseHooker() {
|
|||||||
private fun compatCustomIcon(isGrayscaleIcon: Boolean, packageName: String): Pair<Bitmap?, Int> {
|
private fun compatCustomIcon(isGrayscaleIcon: Boolean, packageName: String): Pair<Bitmap?, Int> {
|
||||||
var customPair: Pair<Bitmap?, Int>? = null
|
var customPair: Pair<Bitmap?, Int>? = null
|
||||||
if (prefs.get(DataConst.ENABLE_NOTIFY_ICON_FIX)) run {
|
if (prefs.get(DataConst.ENABLE_NOTIFY_ICON_FIX)) run {
|
||||||
if (iconDatas.isNotEmpty())
|
iconDatas.takeIf { it.isNotEmpty() }?.forEach {
|
||||||
iconDatas.forEach {
|
|
||||||
if (packageName == it.packageName && isAppNotifyHookOf(it)) {
|
if (packageName == it.packageName && isAppNotifyHookOf(it)) {
|
||||||
if (isGrayscaleIcon.not() || isAppNotifyHookAllOf(it))
|
if (isGrayscaleIcon.not() || isAppNotifyHookAllOf(it))
|
||||||
customPair = Pair(it.iconBitmap, it.iconColor)
|
customPair = Pair(it.iconBitmap, it.iconColor)
|
||||||
|
Reference in New Issue
Block a user