mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-02 15:25:39 +00:00
Fix edit button crashing if pressed from encrypt
This commit is contained in:
@@ -146,7 +146,9 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
|
|||||||
|
|
||||||
public void editPassword() {
|
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;
|
return;
|
||||||
|
|
||||||
CharSequence category = ((TextView) findViewById(R.id.crypto_password_category)).getText();
|
CharSequence category = ((TextView) findViewById(R.id.crypto_password_category)).getText();
|
||||||
|
Reference in New Issue
Block a user