diff options
author | Zeapo <mohamed@zenadi.com> | 2014-08-07 00:10:23 +0100 |
---|---|---|
committer | Zeapo <mohamed@zenadi.com> | 2014-08-07 00:10:23 +0100 |
commit | 19b48565f40d96bdd2a277378758c98e99edf490 (patch) | |
tree | a343059021c94dd9e45c2def6679e90bb9385716 /app/src/main/java | |
parent | afe79f7243a51a61b6f36bd5e9fd2fef9ffc3b81 (diff) |
some ui improvements: show the category we add to
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | 5 |
1 files changed, 5 insertions, 0 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 e55b2033..84c1642f 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java @@ -25,6 +25,7 @@ import android.widget.Toast; import com.zeapo.pwdstore.R; import com.zeapo.pwdstore.UserPreference; +import com.zeapo.pwdstore.utils.PasswordRepository; import org.apache.commons.io.FileUtils; import org.openintents.openpgp.OpenPgpError; @@ -70,6 +71,10 @@ public class PgpHandler extends Activity { ((TextView) findViewById(R.id.crypto_password_file)).setText(extra.getString("NAME")); } else if (extra.getString("Operation").equals("ENCRYPT")) { setContentView(R.layout.encrypt_layout); + String cat = extra.getString("FILE_PATH"); + cat = cat.replace(PasswordRepository.getWorkTree().getAbsolutePath(), ""); + cat = cat + "/"; + ((TextView) findViewById(R.id.crypto_password_category)).setText(cat); } // some persistance |