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

Commit 5340f7a4 authored by Mark Kim's avatar Mark Kim
Browse files

Do not pass parameter to strings which are not expecting it

Test: n/a

Bug: 290777135
Change-Id: I91957697ae207ecc2a29ff27ea27cd441c56c4f8
parent edda401a
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -156,10 +156,9 @@ public class UninstallAlertDialogFragment extends DialogFragment implements
                if (customUserManager.isUserOfType(USER_TYPE_PROFILE_MANAGED)
                        && customUserManager.isSameProfileGroup(dialogInfo.user, myUserHandle)) {
                    messageBuilder.append(isArchive
                            ? getString(R.string.archive_application_text_current_user_work_profile,
                                    userName) : getString(
                            R.string.uninstall_application_text_current_user_work_profile,
                            userName));
                            ? getString(R.string.archive_application_text_current_user_work_profile)
                            : getString(
                                    R.string.uninstall_application_text_current_user_work_profile));
                } else if (customUserManager.isUserOfType(USER_TYPE_PROFILE_CLONE)
                        && customUserManager.isSameProfileGroup(dialogInfo.user, myUserHandle)) {
                    mIsClonedApp = true;
@@ -168,11 +167,11 @@ public class UninstallAlertDialogFragment extends DialogFragment implements
                } else if (Flags.allowPrivateProfile()
                        && customUserManager.isPrivateProfile()
                        && customUserManager.isSameProfileGroup(dialogInfo.user, myUserHandle)) {
                    messageBuilder.append(isArchive ? getString(
                            R.string.archive_application_text_current_user_private_profile,
                            userName) : getString(
                            R.string.uninstall_application_text_current_user_private_profile,
                            userName));
                    messageBuilder.append(
                            isArchive ? getString(
                                    R.string.archive_application_text_current_user_private_profile)
                            : getString(
                                R.string.uninstall_application_text_current_user_private_profile));
                } else if (isArchive) {
                    messageBuilder.append(
                            getString(R.string.archive_application_text_user, userName));