aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorAdam Smith <adam.smith18@ntlworld.com>2014-10-30 22:11:31 +0000
committerAdam Smith <adam.smith18@ntlworld.com>2014-10-30 22:11:31 +0000
commitaf2c0ab0e1e8f45e821e4fc37752eee4bc6ab1bc (patch)
treece767c55ce0a766b166c91dff7bdc7c4baaddaaa /app/src/main/java
parent9f9f99dc244d255f1dfbda8cc546413929edf51f (diff)
Check that the string resources work
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PasswordStore.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
index 62bf3d4f..18cee1f2 100644
--- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
+++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
@@ -53,7 +53,7 @@ public class PasswordStore extends ActionBarActivity {
super.onResume();
// create the repository static variable in PasswordRepository
- PasswordRepository.getRepository(new File(getFilesDir() + "/store/.git"));
+ PasswordRepository.getRepository(new File(getFilesDir() + this.getResources().getString(R.string.git_store)));
// re-check that there was no change with the repository state
checkLocalRepository();
@@ -111,8 +111,8 @@ public class PasswordStore extends ActionBarActivity {
Log.d("PASS", "Menu item " + id + " pressed");
AlertDialog.Builder initBefore = new AlertDialog.Builder(this)
- .setMessage("Please clone or create a new repository below before trying to add a password or any synchronization operation.")
- .setPositiveButton("OK", new DialogInterface.OnClickListener() {
+ .setMessage(this.getResources().getString(R.string.creation_alert_text));
+ .setPositiveButton(this.getResources().getString(R.string.ok), new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
}
@@ -205,7 +205,7 @@ public class PasswordStore extends ActionBarActivity {
GitAsyncTask tasks = new GitAsyncTask(this, false, false, CommitCommand.class);
tasks.execute(
git.add().addFilepattern("."),
- git.commit().setMessage("[ANDROID PwdStore] Initialized store with keyID: " + keyId)
+ git.commit().setMessage(R.string.initialization_commit_text + keyId)
);
} catch (Exception e) {
e.printStackTrace();