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

Commit 8bb2af20 authored by Jing Ji's avatar Jing Ji Committed by Android (Google) Code Review
Browse files

Merge "Set the FLAG_FROM_BACKGROUND for job bindings"

parents d7afbefd cad330ef
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -303,7 +303,9 @@ public final class JobServiceContext implements ServiceConnection {
                    getStartActionId(job), String.valueOf(job.getJobId()));
            mVerb = VERB_BINDING;
            scheduleOpTimeOutLocked();
            final Intent intent = new Intent().setComponent(job.getServiceComponent());
            // Use FLAG_FROM_BACKGROUND to avoid resetting the bad-app tracking.
            final Intent intent = new Intent().setComponent(job.getServiceComponent())
                    .setFlags(Intent.FLAG_FROM_BACKGROUND);
            boolean binding = false;
            try {
                final int bindFlags;