divers fix

This commit is contained in:
2022-10-12 01:15:46 +02:00
parent c85f6afbf1
commit 401f86f484
4 changed files with 43 additions and 13 deletions

View File

@@ -140,7 +140,7 @@ public class MainActivity extends AppCompatActivity {
});
dialogOptBattery.setNegativeButton(R.string.dialog_button_non, (dialog1, id) -> {
// User cancelled the dialog
Toast.makeText(this, "Annulation par l'utilisateur", Toast.LENGTH_SHORT).show();
Toast.makeText(this, R.string.battery_annul, Toast.LENGTH_SHORT).show();
});
AlertDialog alertDialog = dialogOptBattery.create();
@@ -200,13 +200,13 @@ public class MainActivity extends AppCompatActivity {
private void createDialog()
{
dialog=new Dialog(this);
dialog.setTitle("A Propos de l'Application");
dialog.setTitle(R.string.dialog_about_titre);
dialog.setContentView(R.layout.about_dialog);
tv_close= (TextView) dialog.findViewById(R.id.tv_close);
tv_version = (TextView) dialog.findViewById(R.id.tv_version);
tv_close.setOnClickListener(v -> dialog.dismiss());
tv_version.setText("RADIO MERCURE - Version " + versionName);
tv_version.setText(getString(R.string.app_version) + versionName);
}