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

Commit 4ab45e88 authored by Robert Burns's avatar Robert Burns Committed by Ricardo Cerqueira
Browse files

Fix profile broadcast

Change-Id: I68251d16c371e3e1a4ec33f921d40d2d81df1139
parent 3ab36dcd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.XmlResourceParser;
import android.os.RemoteException;
import android.os.UserHandle;
import android.text.TextUtils;
import android.util.Log;
import android.os.ParcelUuid;
@@ -213,7 +214,7 @@ public class ProfileManagerService extends IProfileManager.Stub {
                broadcast.putExtra("uuid", mActiveProfile.getUuid().toString());
                broadcast.putExtra("lastName", lastProfile.getName());
                broadcast.putExtra("lastUuid", lastProfile.getUuid().toString());
                mContext.sendBroadcast(broadcast);
                mContext.sendBroadcastAsUser(broadcast, UserHandle.ALL);

                restoreCallingIdentity(token);
                persistIfDirty();