fix(youtube/tablet-mini-player): throw if fingerprint fails to resolve

This commit is contained in:
oSumAtrIX 2023-04-23 06:13:36 +02:00
parent b238bc3ffd
commit c78ab33a8d
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -67,10 +67,9 @@ class TabletMiniPlayerPatch : BytecodePatch(
*/
MiniPlayerOverrideParentFingerprint.result?.let {
if (!MiniPlayerOverrideFingerprint.resolve(context, it.classDef))
return MiniPlayerOverrideFingerprint.toErrorResult()
throw MiniPlayerOverrideFingerprint.toErrorResult()
MiniPlayerOverrideFingerprint.addProxyCall()
} ?: return MiniPlayerOverrideParentFingerprint.toErrorResult()
/*