Skip to content

Commit 37cef82

Browse files
author
Yevhen Babiichuk (DustDFG)
committed
Correct inverted check
If performs action when value is true but check when false Fix for d6be966
1 parent dab8e05 commit 37cef82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/player/mediabrowser/PackageValidator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ internal class PackageValidator(context: Context) {
8585
?: error("Caller wasn't found in the system?")
8686

8787
// Verify that things aren't ... broken. (This test should always pass.)
88-
check(callerPackageInfo.uid != callingUid) {
88+
check(callerPackageInfo.uid == callingUid) {
8989
"Caller's package UID doesn't match caller's actual UID?"
9090
}
9191

0 commit comments

Comments
 (0)