Lemon Meringue Pie

This commit is contained in:
An Bui 2024-11-08 12:29:29 +07:00
parent 965650b3e7
commit 1b7634983a
9 changed files with 178 additions and 8 deletions

View file

@ -578,6 +578,23 @@ public class MainActivity extends AppCompatActivity {
}
});
alertDialog.show();
} else if (id == R.id.restorevms) {
alertDialog = new AlertDialog.Builder(activity, R.style.MainDialogTheme).create();
alertDialog.setTitle(getResources().getString(R.string.restore));
alertDialog.setMessage(getResources().getString(R.string.restore_content));
alertDialog.setButton(DialogInterface.BUTTON_POSITIVE, getResources().getString(R.string.continuetext), new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
VectrasApp.startRestore();
errorjsondialog();
VectrasApp.oneDialog(getResources().getString(R.string.done), getResources().getString(R.string.restored) + " " + String.valueOf(VectrasApp.restoredVMs) + ".", true, false, activity);
}
});
alertDialog.setButton(DialogInterface.BUTTON_NEGATIVE, getResources().getString(R.string.cancel), new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
alertDialog.dismiss();
}
});
alertDialog.show();
}
return false;
}