diff --git a/app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java b/app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java
index 4ddb93b9..77cc83e8 100644
--- a/app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java
+++ b/app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java
@@ -278,7 +278,7 @@ public class LoginActivity extends SecureActivity
// set dialog message
alertDialogBuilder
.setCancelable(false)
- .setPositiveButton("OK",
+ .setPositiveButton(getString(R.string.label_ok),
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
Helper.hideKeyboardAlways(LoginActivity.this);
@@ -286,7 +286,7 @@ public class LoginActivity extends SecureActivity
new AsyncRename().execute(walletName, newName);
}
})
- .setNegativeButton("Cancel",
+ .setNegativeButton(getString(R.string.label_cancel),
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
Helper.hideKeyboardAlways(LoginActivity.this);
@@ -482,8 +482,8 @@ public class LoginActivity extends SecureActivity
// set dialog message
alertDialogBuilder
.setCancelable(false)
- .setPositiveButton("OK", null)
- .setNegativeButton("Cancel",
+ .setPositiveButton(getString(R.string.label_ok), null)
+ .setNegativeButton(getString(R.string.label_cancel),
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
Helper.hideKeyboardAlways(LoginActivity.this);
diff --git a/app/src/main/java/com/m2049r/xmrwallet/SecureActivity.java b/app/src/main/java/com/m2049r/xmrwallet/SecureActivity.java
index dc9ac1ac..ee749989 100644
--- a/app/src/main/java/com/m2049r/xmrwallet/SecureActivity.java
+++ b/app/src/main/java/com/m2049r/xmrwallet/SecureActivity.java
@@ -31,9 +31,8 @@ public abstract class SecureActivity extends AppCompatActivity {
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- File f = new File(Helper.getStorageRoot(this), "screenshot");
// set FLAG_SECURE to prevent screenshots in Release Mode
- if ((!BuildConfig.DEBUG) && (!f.exists())) {
+ if (!BuildConfig.DEBUG) {
getWindow().setFlags(LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE);
}
}
diff --git a/app/src/main/java/com/m2049r/xmrwallet/fragment/send/SendBtcConfirmWizardFragment.java b/app/src/main/java/com/m2049r/xmrwallet/fragment/send/SendBtcConfirmWizardFragment.java
index 3f1bd5e5..9288870c 100644
--- a/app/src/main/java/com/m2049r/xmrwallet/fragment/send/SendBtcConfirmWizardFragment.java
+++ b/app/src/main/java/com/m2049r/xmrwallet/fragment/send/SendBtcConfirmWizardFragment.java
@@ -374,7 +374,7 @@ public class SendBtcConfirmWizardFragment extends SendWizardFragment implements
alertDialogBuilder
.setCancelable(false)
- .setPositiveButton("OK", new DialogInterface.OnClickListener() {
+ .setPositiveButton(getString(R.string.label_ok), new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
String pass = etPassword.getEditText().getText().toString();
if (getActivityCallback().verifyWalletPassword(pass)) {
@@ -386,7 +386,7 @@ public class SendBtcConfirmWizardFragment extends SendWizardFragment implements
}
}
})
- .setNegativeButton("Cancel",
+ .setNegativeButton(getString(R.string.label_cancel),
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
Helper.hideKeyboardAlways(activity);
diff --git a/app/src/main/java/com/m2049r/xmrwallet/fragment/send/SendConfirmWizardFragment.java b/app/src/main/java/com/m2049r/xmrwallet/fragment/send/SendConfirmWizardFragment.java
index 73e3d91b..fe8395f6 100644
--- a/app/src/main/java/com/m2049r/xmrwallet/fragment/send/SendConfirmWizardFragment.java
+++ b/app/src/main/java/com/m2049r/xmrwallet/fragment/send/SendConfirmWizardFragment.java
@@ -250,7 +250,7 @@ public class SendConfirmWizardFragment extends SendWizardFragment implements Sen
alertDialogBuilder
.setCancelable(false)
- .setPositiveButton("OK", new DialogInterface.OnClickListener() {
+ .setPositiveButton(getString(R.string.label_ok), new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
String pass = etPassword.getEditText().getText().toString();
if (getActivityCallback().verifyWalletPassword(pass)) {
@@ -262,7 +262,7 @@ public class SendConfirmWizardFragment extends SendWizardFragment implements Sen
}
}
})
- .setNegativeButton("Cancel",
+ .setNegativeButton(getString(R.string.label_cancel),
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
Helper.hideKeyboardAlways(activity);
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index 55d381ca..833b74d6 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -15,8 +15,9 @@
Carteras
Donar
- Cerrar
+ OK
Cancelar
+ Cerrar
Toca para información más detallada
¡Éxito!
@@ -134,8 +135,6 @@
Exportar Claves
BORRAR
- <Cartera De Sólo Vista>
-
¡Dame un nombre!
¡La cartera ya existe!
No puede empezar con .
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 278a6cf2..a0025cfb 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -17,8 +17,9 @@
Wallets
Donate
- Close
+ OK
Cancel
+ Close
Touch for detailed information
Successfully sent
@@ -201,8 +202,6 @@
Export Keys
DELETE
- <Watch Only Wallet>
-
Give me a name!
Wallet exists!
Cannot begin with .