refactor the strings and reuse them in login screen files

This commit is contained in:
M M Arif
2019-10-25 08:38:35 +05:00
parent f9d51094e4
commit 2aaf0eb103
3 changed files with 6 additions and 7 deletions

View File

@@ -403,14 +403,14 @@ public class LoginActivity extends AppCompatActivity implements View.OnClickList
.setMessage(getResources().getString(R.string.versionUnsupportedOld, version.getVersion()))
.setCancelable(true)
.setIcon(R.drawable.ic_warning)
.setNegativeButton(getString(R.string.versionAlertDialogCopyNegative), new DialogInterface.OnClickListener() {
.setNegativeButton(getString(R.string.cancelButton), new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
enableProcessButton();
}
})
.setPositiveButton(getString(R.string.versionAlertDialogCopyPositive), new DialogInterface.OnClickListener() {
.setPositiveButton(getString(R.string.textContinue), new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {