summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorZeapo <mohamed@zenadi.com>2014-08-06 23:45:37 +0100
committerZeapo <mohamed@zenadi.com>2014-08-06 23:45:37 +0100
commita3138257561f8319fcb44489cc87e690bfcd0d02 (patch)
tree5e0d78c0bf1f5cb66d6618d50d8829ca2a41a6db /app/src/main/java
parentc2f520f7bf7b699d15db4cf8c6c28725cb834243 (diff)
more refactoring
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PasswordStore.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
index 500971d3..f49a7dca 100644
--- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
+++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
@@ -202,7 +202,7 @@ public class PasswordStore extends Activity implements ToCloneOrNot.OnFragmentI
}
public void createPassword(View v) {
- this.currentDir = new File(((PasswordFragment) getFragmentManager().findFragmentByTag("PasswordsList")).getArguments().getString("Path"));
+ this.currentDir = getCurrentDir();
Log.i("PWDSTR", "Adding file to : " + this.currentDir.getAbsolutePath());
this.leftActivity = true;
@@ -226,6 +226,10 @@ public class PasswordStore extends Activity implements ToCloneOrNot.OnFragmentI
}
}
+ private File getCurrentDir() {
+ return new File(((PasswordFragment) getFragmentManager().findFragmentByTag("PasswordsList")).getArguments().getString("Path"));
+ }
+
protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
if (resultCode == RESULT_OK) {