1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-27 08:23:24 +00:00

Refactoring

This commit is contained in:
M66B 2019-12-02 09:23:46 +01:00
parent c049958263
commit 15e9d529c7

View file

@ -219,7 +219,7 @@ public class FragmentCompose extends FragmentBase {
private static final int REQUEST_ATTACHMENT = 5;
private static final int REQUEST_TAKE_PHOTO = 6;
private static final int REQUEST_RECORD_AUDIO = 7;
private static final int REQUEST_ENCRYPT = 8;
private static final int REQUEST_OPENPGP = 8;
private static final int REQUEST_COLOR = 9;
private static final int REQUEST_CONTACT_GROUP = 10;
private static final int REQUEST_ANSWER = 11;
@ -1284,7 +1284,7 @@ public class FragmentCompose extends FragmentBase {
else if (data != null)
onAddMedia(data);
break;
case REQUEST_ENCRYPT:
case REQUEST_OPENPGP:
if (resultCode == RESULT_OK && data != null)
onPgp(data);
break;
@ -1776,7 +1776,7 @@ public class FragmentCompose extends FragmentBase {
PendingIntent pi = (PendingIntent) result;
startIntentSenderForResult(
pi.getIntentSender(),
REQUEST_ENCRYPT,
REQUEST_OPENPGP,
null, 0, 0, 0, null);
} catch (IntentSender.SendIntentException ex) {
Log.e(ex);