Skip to content

Commit 6214ae3

Browse files
authored
Merge pull request #13219 from dustdfg/kotlin_check_is_not_if
Correct inverted check (error fix on dev branch)
2 parents dab8e05 + 37cef82 commit 6214ae3

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)