mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-28 21:00:19 +02:00
chore: lint code
This commit is contained in:
parent
8d9da83fc5
commit
0a24483224
@ -24,8 +24,10 @@ object CustomBrandingIconPatch : BaseResourcePatch(
|
||||
description = "Changes the YouTube Music app icon to the icon specified in options.json.",
|
||||
compatiblePackages = COMPATIBLE_PACKAGE
|
||||
) {
|
||||
private const val ADAPTIVE_ICON_BACKGROUND_FILE_NAME = "adaptiveproduct_youtube_music_background_color_108"
|
||||
private const val ADAPTIVE_ICON_FOREGROUND_FILE_NAME = "adaptiveproduct_youtube_music_foreground_color_108"
|
||||
private const val ADAPTIVE_ICON_BACKGROUND_FILE_NAME =
|
||||
"adaptiveproduct_youtube_music_background_color_108"
|
||||
private const val ADAPTIVE_ICON_FOREGROUND_FILE_NAME =
|
||||
"adaptiveproduct_youtube_music_foreground_color_108"
|
||||
private const val DEFAULT_ICON = "revancify_blue"
|
||||
|
||||
private val availableIcon = mapOf(
|
||||
|
@ -12,7 +12,8 @@ internal object PrimesBackgroundInitializationFingerprint : MethodFingerprint(
|
||||
methodDef.indexOfFirstInstruction {
|
||||
opcode == Opcode.CONST_STRING &&
|
||||
getReference<StringReference>()
|
||||
?.string.toString().startsWith("Primes init triggered from background in package:")
|
||||
?.string.toString()
|
||||
.startsWith("Primes init triggered from background in package:")
|
||||
} >= 0
|
||||
}
|
||||
)
|
@ -17,7 +17,8 @@ internal object PrimesLifecycleEventFingerprint : MethodFingerprint(
|
||||
methodDef.indexOfFirstInstruction {
|
||||
opcode == Opcode.CONST_STRING &&
|
||||
getReference<StringReference>()
|
||||
?.string.toString().startsWith("Primes did not observe lifecycle events in the expected order.")
|
||||
?.string.toString()
|
||||
.startsWith("Primes did not observe lifecycle events in the expected order.")
|
||||
} >= 0
|
||||
}
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user