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

Commit e1d4e66c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Intitialize AcceptableLeftDistance with NUM_OP-1."

parents 1241c870 9f1c7734
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6020,7 +6020,7 @@ public class AppOpsService extends IAppOpsService.Stub {
    private void resampleAppOpForPackageLocked(@NonNull String packageName, boolean pickOp) {
        mMessagesCollectedCount = 0.0f;
        mSampledAppOpCode = pickOp ? ThreadLocalRandom.current().nextInt(_NUM_OP) : OP_NONE;
        mAcceptableLeftDistance = _NUM_OP;
        mAcceptableLeftDistance = _NUM_OP - 1;
        mSampledPackage = packageName;
    }