mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
Replace passphrase mismatch toast with error
Display a form error instead of a toast if the passphrase doesn't match. Closes #5268 // FREEBIE
This commit is contained in:
parent
ca5bd84a67
commit
f2c5e904e8
@ -35,7 +35,6 @@ import android.view.inputmethod.EditorInfo;
|
||||
import android.widget.EditText;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import org.thoughtcrime.securesms.components.AnimatingToggle;
|
||||
import org.thoughtcrime.securesms.crypto.InvalidPassphraseException;
|
||||
@ -116,8 +115,8 @@ public class PassphrasePromptActivity extends PassphraseActivity {
|
||||
setMasterSecret(masterSecret);
|
||||
} catch (InvalidPassphraseException ipe) {
|
||||
passphraseText.setText("");
|
||||
Toast.makeText(this, R.string.PassphrasePromptActivity_invalid_passphrase_exclamation,
|
||||
Toast.LENGTH_SHORT).show();
|
||||
passphraseText.setError(
|
||||
getString(R.string.PassphrasePromptActivity_invalid_passphrase_exclamation));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user