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

Commit ca6b2423 authored by Hai Zhang's avatar Hai Zhang Committed by android-build-merger
Browse files

Merge "Use ActivityThread.currentApplication() for application context." into qt-dev

am: 777d6a93

Change-Id: I350575ee7ed67fbe154e63def0129c23180f4936
parents a885b1fc 777d6a93
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.annotation.NonNull;
import android.annotation.RequiresPermission;
import android.annotation.SystemService;
import android.annotation.UserIdInt;
import android.app.ActivityThread;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
@@ -93,7 +94,7 @@ public class RoleControllerManager {
            int userId = context.getUserId();
            RemoteService remoteService = sRemoteServices.get(userId);
            if (remoteService == null) {
                remoteService = new RemoteService(context.getApplicationContext(),
                remoteService = new RemoteService(ActivityThread.currentApplication(),
                        remoteServiceComponentName, handler, userId);
                sRemoteServices.put(userId, remoteService);
            }