mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-07 16:09:38 +02:00
Fix edit button crashing if pressed from encrypt
This commit is contained in:
parent
c54d28af8a
commit
7c390ba81b
|
@ -146,7 +146,9 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
|
|||
|
||||
public void editPassword() {
|
||||
|
||||
if (findViewById(R.id.crypto_container).getVisibility() != View.VISIBLE)
|
||||
// if in encrypt or (in decrypt and password is invisible), do nothing
|
||||
if (findViewById(R.id.crypto_password_show) == null
|
||||
|| findViewById(R.id.crypto_container).getVisibility() != View.VISIBLE)
|
||||
return;
|
||||
|
||||
CharSequence category = ((TextView) findViewById(R.id.crypto_password_category)).getText();
|
||||
|
|
Loading…
Reference in a new issue