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

Commit a7f2f06b authored by Peter Kalauskas's avatar Peter Kalauskas Committed by Automerger Merge Worker
Browse files

Merge "Fix: change owner name when account setup" into sc-dev am: c9076d3d

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15377999

Change-Id: Icca5f3cbe2ba979636938b90acbfa1598b8d678d
parents 2db28ba9 c9076d3d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -63,6 +63,9 @@ public class ProfileUpdateReceiver extends BroadcastReceiver {

    /** Returns whether the current user name is different from the default one. */
    private static boolean isCurrentNameInteresting(Context context, UserManager um) {
        if (!um.isUserNameSet()) {
            return false;
        }
        final String currentName = um.getUserName();
        final String defaultName = um.isRestrictedProfile() || um.isProfile() ?
                context.getString(com.android.settingslib.R.string.user_new_profile_name) :