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 +++++ app/src/main/res/layout/encrypt_layout.xml | 10 +++++++--- app/src/main/res/values/strings.xml | 10 +++++----- 3 files changed, 17 insertions(+), 8 deletions(-) (limited to 'app/src/main') 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 diff --git a/app/src/main/res/layout/encrypt_layout.xml b/app/src/main/res/layout/encrypt_layout.xml index abc75fe5..3abfd7d6 100644 --- a/app/src/main/res/layout/encrypt_layout.xml +++ b/app/src/main/res/layout/encrypt_layout.xml @@ -25,17 +25,21 @@ android:layout_column="0"> + android:textColor="@android:color/holo_blue_dark" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="CATEGORY/"/> @@ -65,7 +69,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:textStyle="bold" - android:text="Password: "/> + android:text="@string/crypto_pass_label"/> + android:text="@string/crypto_extra_label"/> Initialize a git repository Hello blank fragment - - No suitable application for this action found. - The installed APG version is not supported. - Password Store doesn\'t have permission to access APG fully, please reinstall Password Store to fix that. - AgpIntentsActivity + PgpHandler + name + Password + Extra + -- cgit v1.2.3