mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 13:57:47 +00:00
one getWorkTree less, we should remove them all
This commit is contained in:
@@ -738,8 +738,10 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
|
|||||||
if (operation.equals("DECRYPT")) {
|
if (operation.equals("DECRYPT")) {
|
||||||
setContentView(R.layout.decrypt_layout);
|
setContentView(R.layout.decrypt_layout);
|
||||||
((TextView) findViewById(R.id.crypto_password_file)).setText(extra.getString("NAME"));
|
((TextView) findViewById(R.id.crypto_password_file)).setText(extra.getString("NAME"));
|
||||||
String cat = new File(extra.getString("FILE_PATH").replace(PasswordRepository.getWorkTree().getAbsolutePath(), ""))
|
String path = extra
|
||||||
.getParentFile().getName();
|
.getString("FILE_PATH")
|
||||||
|
.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)).setText(cat + "/");
|
||||||
decryptAndVerify(new Intent());
|
decryptAndVerify(new Intent());
|
||||||
|
Reference in New Issue
Block a user