mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-13 04:25:00 -05:00
Because of an unknown reason toast messages were commented out.
This commit is contained in:
parent
1b57a10bb6
commit
0f6dc253a4
@ -495,11 +495,10 @@ public class EditKeyActivity extends ActionBarActivity {
|
|||||||
|
|
||||||
private void saveClicked() {
|
private void saveClicked() {
|
||||||
long masterKeyId = getMasterKeyId();
|
long masterKeyId = getMasterKeyId();
|
||||||
try {
|
if (!isPassphraseSet()) {
|
||||||
if (!isPassphraseSet()) {
|
Log.e(Constants.TAG, "No passphrase has been set");
|
||||||
throw new PgpGeneralException(this.getString(R.string.set_a_passphrase));
|
Toast.makeText(this, R.string.set_a_passphrase, Toast.LENGTH_LONG).show();
|
||||||
}
|
} else {
|
||||||
|
|
||||||
String passphrase = null;
|
String passphrase = null;
|
||||||
if (mIsPassPhraseSet) {
|
if (mIsPassPhraseSet) {
|
||||||
passphrase = PassphraseCacheService.getCachedPassphrase(this, masterKeyId);
|
passphrase = PassphraseCacheService.getCachedPassphrase(this, masterKeyId);
|
||||||
@ -512,9 +511,6 @@ public class EditKeyActivity extends ActionBarActivity {
|
|||||||
mCurrentPassphrase = passphrase;
|
mCurrentPassphrase = passphrase;
|
||||||
finallySaveClicked();
|
finallySaveClicked();
|
||||||
}
|
}
|
||||||
} catch (PgpGeneralException e) {
|
|
||||||
//Toast.makeText(this, getString(R.string.error_message, e.getMessage()),
|
|
||||||
// Toast.LENGTH_SHORT).show();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -576,8 +572,9 @@ public class EditKeyActivity extends ActionBarActivity {
|
|||||||
// start service with intent
|
// start service with intent
|
||||||
startService(intent);
|
startService(intent);
|
||||||
} catch (PgpGeneralException e) {
|
} catch (PgpGeneralException e) {
|
||||||
//Toast.makeText(this, getString(R.string.error_message, e.getMessage()),
|
Log.e(Constants.TAG, getString(R.string.error_message, e.getMessage()));
|
||||||
// Toast.LENGTH_SHORT).show();
|
Toast.makeText(this, getString(R.string.error_message, e.getMessage()),
|
||||||
|
Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user