ProfileManager: Make PROFILE_SELECTED broadcast explicit

Ref: BUGBASH-1969
Change-Id: I698e047f1130974a75e5e6404a13f619f57bb707
This commit is contained in:
Luca Stefani
2018-07-15 18:44:45 +02:00
parent 0efe50d196
commit c670140492

View File

@@ -790,6 +790,7 @@ public class ProfileManagerService extends LineageSystemService {
lastProfile.getName());
broadcast.putExtra(ProfileManager.EXTRA_LAST_PROFILE_UUID,
lastProfile.getUuid().toString());
broadcast.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
mContext.sendBroadcastAsUser(broadcast, UserHandle.ALL);
persistIfDirty();