Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc89dafa authored by Benjamin Franz's avatar Benjamin Franz Committed by Android Git Automerger
Browse files

am 339a9bbf: Merge "Use realActivity as indicator for task locking" into mnc-dev

* commit '339a9bbf':
  Use realActivity as indicator for task locking
parents 8695ec34 339a9bbf
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -786,7 +786,8 @@ final class TaskRecord {
    }

    boolean isLockTaskWhitelistedLocked() {
        if (mCallingPackage == null) {
        String pkg = (realActivity != null) ? realActivity.getPackageName() : null;
        if (pkg == null) {
            return false;
        }
        String[] packages = mService.mLockTaskPackages.get(userId);
@@ -794,7 +795,7 @@ final class TaskRecord {
            return false;
        }
        for (int i = packages.length - 1; i >= 0; --i) {
            if (mCallingPackage.equals(packages[i])) {
            if (pkg.equals(packages[i])) {
                return true;
            }
        }