From 19b48565f40d96bdd2a277378758c98e99edf490 Mon Sep 17 00:00:00 2001 From: Zeapo Date: Thu, 7 Aug 2014 00:10:23 +0100 Subject: some ui improvements: show the category we add to --- app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/src/main/java/com') 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 -- cgit v1.2.3