Show PGP "please wait" message only when actually decrypting
This commit is contained in:
parent
29a849cb92
commit
016a57f123
|
@ -550,7 +550,11 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||
}
|
||||
} else if (message.getEncryption() == Message.ENCRYPTION_PGP) {
|
||||
if (activity.hasPgp()) {
|
||||
displayInfoMessage(viewHolder,activity.getString(R.string.encrypted_message),darkBackground);
|
||||
if (account.getPgpDecryptionService().isRunning()) {
|
||||
displayInfoMessage(viewHolder, activity.getString(R.string.message_decrypting), darkBackground);
|
||||
} else {
|
||||
displayInfoMessage(viewHolder, activity.getString(R.string.pgp_message), darkBackground);
|
||||
}
|
||||
} else {
|
||||
displayInfoMessage(viewHolder,activity.getString(R.string.install_openkeychain),darkBackground);
|
||||
if (viewHolder != null) {
|
||||
|
|
|
@ -30,7 +30,8 @@
|
|||
<string name="minutes_ago">%d mins ago</string>
|
||||
<string name="unread_conversations">unread Conversations</string>
|
||||
<string name="sending">sending…</string>
|
||||
<string name="encrypted_message">Decrypting message. Please wait…</string>
|
||||
<string name="message_decrypting">Decrypting message. Please wait…</string>
|
||||
<string name="pgp_message">OpenPGP encrypted message</string>
|
||||
<string name="nick_in_use">Nickname is already in use</string>
|
||||
<string name="admin">Admin</string>
|
||||
<string name="owner">Owner</string>
|
||||
|
|
Loading…
Reference in a new issue