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

Commit e976624b authored by Steve Kondik's avatar Steve Kondik
Browse files

profiles: Don't broadcast before boot completed

 * Fix exception during boot.

Change-Id: I53850f55d3252ff2d16e1c98878ba24a074131e7
parent 2fe360bb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;

import android.app.ActivityManagerNative;
import android.app.IProfileManager;
import android.app.NotificationGroup;
import android.app.Profile;
@@ -227,7 +228,8 @@ public class ProfileManagerService extends IProfileManager.Stub {

                restoreCallingIdentity(token);
                persistIfDirty();
            } else if (lastProfile != mActiveProfile) {
            } else if (lastProfile != mActiveProfile &&
                    ActivityManagerNative.isSystemReady()) {
                // Something definitely changed: notify.
                long token = clearCallingIdentity();
                Intent broadcast = new Intent(INTENT_ACTION_PROFILE_UPDATED);