summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorAdam Smith <adam.smith18@ntlworld.com>2014-10-31 14:13:17 +0000
committerAdam Smith <adam.smith18@ntlworld.com>2014-10-31 14:13:17 +0000
commit7219fedf459e305bb7fbaabee2b4ce833f769ccc (patch)
treeb645d091c797d63387a1c13bbb882bc111033391 /app/src/main/java
parentef51bb92313e4e83592059238ac2ca68d27891ca (diff)
Hard coded string in GitAsyncTask replaced with resources
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java b/app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java
index c27bd0d4..6d0e745d 100644
--- a/app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java
+++ b/app/src/main/java/com/zeapo/pwdstore/GitAsyncTask.java
@@ -30,7 +30,7 @@ public class GitAsyncTask extends AsyncTask<GitCommand, Integer, String> {
}
protected void onPreExecute() {
- this.dialog.setMessage("Running command...");
+ this.dialog.setMessage(activity.getResources().getString(R.string.running_dialog_text));
this.dialog.setCancelable(false);
this.dialog.show();
}
@@ -54,9 +54,9 @@ public class GitAsyncTask extends AsyncTask<GitCommand, Integer, String> {
if (!result.isEmpty()) {
new AlertDialog.Builder(activity).
- setTitle("Internal exception occurred").
- setMessage("Message from jgit:\n" + result).
- setPositiveButton("OK", new DialogInterface.OnClickListener() {
+ setTitle(activity.getResources().getString(R.string.jgit_error_dialog_title)).
+ setMessage(activity.getResources().getString(R.string.jgit_error_dialog_text) + result).
+ setPositiveButton(activity.getResources().getString(R.string.dialog_ok), new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
if (operation.equals(CloneCommand.class)) {