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

Commit 28b72352 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Stop using UserHandle' hidden constructor.

Bug: 142281756
Test: build
Change-Id: Icf16bdcad34dcc580fcc42d64c98a46d36bf19f7
parent b71657a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -251,7 +251,7 @@ public final class JobServiceContext implements ServiceConnection {
                binding = mContext.bindServiceAsUser(intent, this,
                binding = mContext.bindServiceAsUser(intent, this,
                        Context.BIND_AUTO_CREATE | Context.BIND_NOT_FOREGROUND
                        Context.BIND_AUTO_CREATE | Context.BIND_NOT_FOREGROUND
                        | Context.BIND_NOT_PERCEPTIBLE,
                        | Context.BIND_NOT_PERCEPTIBLE,
                        new UserHandle(job.getUserId()));
                        UserHandle.of(job.getUserId()));
            } catch (SecurityException e) {
            } catch (SecurityException e) {
                // Some permission policy, for example INTERACT_ACROSS_USERS and
                // Some permission policy, for example INTERACT_ACROSS_USERS and
                // android:singleUser, can result in a SecurityException being thrown from
                // android:singleUser, can result in a SecurityException being thrown from