mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 14:16:58 -04:00
Removed unsaved offline account warning dialog
This commit is contained in:
parent
6345c352c2
commit
ed6f15dd6f
@ -497,50 +497,8 @@ public class PojavLoginActivity extends MineActivity
|
||||
end skip*/
|
||||
|
||||
if (sOffline.isChecked()) {
|
||||
AlertDialog.Builder alert = new AlertDialog.Builder(this);
|
||||
alert.setTitle(R.string.warning_title);
|
||||
alert.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener(){
|
||||
|
||||
@Override
|
||||
public void onClick(DialogInterface p1, int p2)
|
||||
{
|
||||
sRemember.setChecked(true);
|
||||
mProfile = loginOffline();
|
||||
playProfile();
|
||||
}
|
||||
});
|
||||
|
||||
alert.setNegativeButton(R.string.login_offline_alert_skip, new DialogInterface.OnClickListener(){
|
||||
|
||||
@Override
|
||||
public void onClick(DialogInterface p1, int p2)
|
||||
{
|
||||
mProfile = loginOffline();
|
||||
playProfile();
|
||||
}
|
||||
});
|
||||
|
||||
alert.setNeutralButton(android.R.string.cancel, new DialogInterface.OnClickListener(){
|
||||
|
||||
@Override
|
||||
public void onClick(DialogInterface p1, int p2)
|
||||
{
|
||||
mProfile = null;
|
||||
}
|
||||
});
|
||||
|
||||
if (!sRemember.isChecked()) {
|
||||
alert.setMessage(R.string.login_offline_warning_1);
|
||||
warning = alert.show();
|
||||
} else {
|
||||
mProfile = loginOffline();
|
||||
playProfile();
|
||||
}
|
||||
|
||||
/*
|
||||
while (warning != null && warning.isShowing()) {
|
||||
}
|
||||
*/
|
||||
mProfile = loginOffline();
|
||||
playProfile();
|
||||
} else {
|
||||
new LoginTask().setLoginListener(new LoginListener(){
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
<string name="login_online_create_account">(Stwórz nowe konto?)</string>
|
||||
|
||||
<string name="login_offline_switch">Konto offline?</string>
|
||||
<string name="login_offline_warning_1">Logujesz się za pomocą konta offline, ale jeśli go nie zapiszesz, Twoje dane mogą zostać zresetowane na Twoich światach / multiplayerach / serwerach. Zalecamy, abyś go zapisał.</string>
|
||||
<string name="login_offline_alert_skip">Pominąć</string>
|
||||
|
||||
<string name="login_error_short_username">Nazwa użytkownika musi mieć co najmniej 3 znaki</string>
|
||||
|
@ -24,8 +24,6 @@
|
||||
<string name="login_online_create_account">(Создать новый профиль?)</string>
|
||||
|
||||
<string name="login_offline_switch">Offline-профиль?</string>
|
||||
<!-- DuyKhanhTran said I can skip line below -->
|
||||
<string name="login_offline_warning_1">You are logging in by an offline account, but if you don\'t save it, your data may be reset in your worlds/multiplayers/servers. We recommend you to save it.</string>
|
||||
<string name="login_offline_alert_skip">Пропустить</string>
|
||||
|
||||
<string name="login_error_short_username">Псевдоним должен быть длиной как минимум 3 символа</string>
|
||||
|
@ -24,7 +24,6 @@
|
||||
<string name="login_online_create_account">(Create new account?)</string>
|
||||
|
||||
<string name="login_offline_switch">Offline account?</string>
|
||||
<string name="login_offline_warning_1">You are logging in by an offline account, but if you don\'t save it, your data may be reset in your worlds/multiplayers/servers. We recommend you to save it.</string>
|
||||
<string name="login_offline_alert_skip">Skip</string>
|
||||
|
||||
<string name="login_error_short_username">Username must be at least 3 characters</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user