summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2017-01-06 23:00:31 +0100
committerMohamed Zenadi <mohamed@zenadi.com>2017-01-06 23:00:31 +0100
commit51e2a43578f2b200d9d300518eca00ef9811445d (patch)
tree8f0d6ef55b45de7868d2ee38158804c637e462f2 /app/src
parent9082519f2559940a08e543500f5afb8fbf0a90da (diff)
one getWorkTree less, we should remove them all
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
index 848bb1a0..da235c2e 100644
--- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
+++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
@@ -738,8 +738,10 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
if (operation.equals("DECRYPT")) {
setContentView(R.layout.decrypt_layout);
((TextView) findViewById(R.id.crypto_password_file)).setText(extra.getString("NAME"));
- String cat = new File(extra.getString("FILE_PATH").replace(PasswordRepository.getWorkTree().getAbsolutePath(), ""))
- .getParentFile().getName();
+ String path = extra
+ .getString("FILE_PATH")
+ .replace(PasswordRepository.getRepositoryDirectory(getApplicationContext()).getAbsolutePath(), "");
+ String cat = new File(path).getParentFile().getName();
((TextView) findViewById(R.id.crypto_password_category)).setText(cat + "/");
decryptAndVerify(new Intent());