diff options
| author | Mohamed Zenadi <mohamed@zenadi.com> | 2017-07-27 00:40:16 +0100 |
|---|---|---|
| committer | Mohamed Zenadi <zeapo@users.noreply.github.com> | 2017-08-10 11:10:29 +0200 |
| commit | c3eb4f0a414b4bceb79b3c19eec2f69528ced02b (patch) | |
| tree | 1faf91237a974d8ef51bf482f1a4d4cb876b5e1a /app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | |
| parent | 902cbd78b0acbf237bf72ff5b60ff3307f100e7f (diff) | |
| download | HardenedPass-c3eb4f0a414b4bceb79b3c19eec2f69528ced02b.tar.gz HardenedPass-c3eb4f0a414b4bceb79b3c19eec2f69528ced02b.zip | |
initial work on pgp activity
Diffstat (limited to 'app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java')
| -rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | 10 |
1 files changed, 5 insertions, 5 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 c4013dc6..4975a6b8 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java @@ -201,7 +201,7 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne || findViewById(R.id.crypto_container).getVisibility() != View.VISIBLE) return; - CharSequence category = ((TextView) findViewById(R.id.crypto_password_category)).getText(); + CharSequence category = ((TextView) findViewById(R.id.crypto_password_category_decrypt)).getText(); CharSequence file = ((TextView) findViewById(R.id.crypto_password_file)).getText(); CharSequence password = ((TextView) findViewById(R.id.crypto_password_show)).getText(); CharSequence extra = ((TextView) findViewById(R.id.crypto_extra_show)).getText(); @@ -211,7 +211,7 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne ((EditText) findViewById(R.id.crypto_password_edit)).setTypeface(monoTypeface); ((EditText) findViewById(R.id.crypto_extra_edit)).setTypeface(monoTypeface); - ((TextView) findViewById(R.id.crypto_password_category)).setText(category); + ((TextView) findViewById(R.id.crypto_password_category_decrypt)).setText(category); ((EditText) findViewById(R.id.crypto_password_file_edit)).setText(file); ((EditText) findViewById(R.id.crypto_password_edit)).setText(password); ((EditText) findViewById(R.id.crypto_extra_edit)).setText(extra); @@ -748,7 +748,7 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne .replace(PasswordRepository.getRepositoryDirectory(getApplicationContext()).getAbsolutePath(), ""); String cat = new File(path).getParentFile().getName(); - ((TextView) findViewById(R.id.crypto_password_category)).setText(cat + "/"); + ((TextView) findViewById(R.id.crypto_password_category_decrypt)).setText(cat + "/"); decryptAndVerify(new Intent()); break; } @@ -760,7 +760,7 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne String cat = extra.getString("FILE_PATH"); cat = cat.replace(PasswordRepository.getRepositoryDirectory(getApplicationContext()).getAbsolutePath(), ""); cat = cat + "/"; - ((TextView) findViewById(R.id.crypto_password_category)).setText(cat); + ((TextView) findViewById(R.id.crypto_password_category_decrypt)).setText(cat); break; } case "GET_KEY_ID": @@ -778,7 +778,7 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne String cat = new File(extra.getString("FILE_PATH").replace(PasswordRepository.getRepositoryDirectory(getApplicationContext()).getAbsolutePath(), "")) .getParentFile().getName(); - ((TextView) findViewById(R.id.crypto_password_category)).setText(cat + "/"); + ((TextView) findViewById(R.id.crypto_password_category_decrypt)).setText(cat + "/"); edit(new Intent()); break; } |
