feat: use better account log off alert

This commit is contained in:
LucasGGamerM 2023-08-29 10:33:08 -03:00
parent 0edaffee59
commit 7191e5a96a
2 changed files with 2 additions and 1 deletions

View File

@ -152,6 +152,7 @@ public class SettingsMainFragment extends BaseSettingsFragment<Void>{
private void onLogOutClick(){
AccountSession session=AccountSessionManager.getInstance().getAccount(accountID);
new M3AlertDialogBuilder(getActivity())
.setTitle(R.string.log_out)
.setMessage(getString(R.string.confirm_log_out, session.getFullUsername()))
.setPositiveButton(R.string.log_out, (dialog, which)->account.logOut(getActivity(), ()->{
loggedOut=true;

View File

@ -130,7 +130,7 @@ public class AccountSwitcherSheet extends BottomSheet{
AccountSession session=AccountSessionManager.getInstance().getAccount(accountID);
new M3AlertDialogBuilder(activity)
.setTitle(R.string.log_out)
.setMessage(activity.getString(R.string.confirm_log_out))
.setMessage(activity.getString(R.string.confirm_log_out, session.getFullUsername()))
.setPositiveButton(R.string.log_out, (dialog, which) -> logOut(accountID))
.setNegativeButton(R.string.cancel, null)
.show();