kopia lustrzana https://github.com/ryukoposting/Signal-Android
rodzic
472179b550
commit
6ec9ee89a7
|
@ -251,6 +251,7 @@
|
||||||
<!-- PassphraseChangeActivity -->
|
<!-- PassphraseChangeActivity -->
|
||||||
<string name="PassphraseChangeActivity_passphrases_dont_match_exclamation">Passphrases don\'t match!</string>
|
<string name="PassphraseChangeActivity_passphrases_dont_match_exclamation">Passphrases don\'t match!</string>
|
||||||
<string name="PassphraseChangeActivity_incorrect_old_passphrase_exclamation">Incorrect old passphrase!</string>
|
<string name="PassphraseChangeActivity_incorrect_old_passphrase_exclamation">Incorrect old passphrase!</string>
|
||||||
|
<string name="PassphraseChangeActivity_enter_new_passphrase_exclamation">Enter new passphrase!</string>
|
||||||
|
|
||||||
<!-- DeviceProvisioningActivity -->
|
<!-- DeviceProvisioningActivity -->
|
||||||
<string name="DeviceProvisioningActivity_link_this_device">Link this device?</string>
|
<string name="DeviceProvisioningActivity_link_this_device">Link this device?</string>
|
||||||
|
|
|
@ -96,6 +96,10 @@ public class PassphraseChangeActivity extends PassphraseActivity {
|
||||||
Toast.LENGTH_SHORT).show();
|
Toast.LENGTH_SHORT).show();
|
||||||
this.newPassphrase.setText("");
|
this.newPassphrase.setText("");
|
||||||
this.repeatPassphrase.setText("");
|
this.repeatPassphrase.setText("");
|
||||||
|
} else if (passphrase.equals("")) {
|
||||||
|
Toast.makeText(getApplicationContext(),
|
||||||
|
R.string.PassphraseChangeActivity_need_new_passphrase_exclamation,
|
||||||
|
Toast.LENGTH_SHORT).show();
|
||||||
} else {
|
} else {
|
||||||
MasterSecret masterSecret = MasterSecretUtil.changeMasterSecretPassphrase(this, original, passphrase);
|
MasterSecret masterSecret = MasterSecretUtil.changeMasterSecretPassphrase(this, original, passphrase);
|
||||||
TextSecurePreferences.setPasswordDisabled(this, false);
|
TextSecurePreferences.setPasswordDisabled(this, false);
|
||||||
|
|
Ładowanie…
Reference in New Issue