mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Added some logging, cleanup
This commit is contained in:
parent
74f3d55ad9
commit
8ac020cb38
2 changed files with 4 additions and 2 deletions
|
@ -1373,6 +1373,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
// Decrypt message
|
||||
OpenPgpApi api = new OpenPgpApi(context, pgpService.getService());
|
||||
Intent result = api.executeApi(data, encrypted, decrypted);
|
||||
|
||||
Log.i(Helper.TAG, "PGP result=" + result.getIntExtra(OpenPgpApi.RESULT_CODE, OpenPgpApi.RESULT_CODE_ERROR));
|
||||
switch (result.getIntExtra(OpenPgpApi.RESULT_CODE, OpenPgpApi.RESULT_CODE_ERROR)) {
|
||||
case OpenPgpApi.RESULT_CODE_SUCCESS:
|
||||
if (inline) {
|
||||
|
@ -1444,6 +1446,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
protected void onLoaded(Bundle args, PendingIntent pi) {
|
||||
if (pi != null)
|
||||
try {
|
||||
Log.i(Helper.TAG, "PGP executing pi=" + pi);
|
||||
startIntentSenderForResult(
|
||||
pi.getIntentSender(),
|
||||
ActivityView.REQUEST_DECRYPT,
|
||||
|
|
|
@ -1346,8 +1346,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
||||
lbm.sendBroadcast(
|
||||
new Intent(ActivityView.ACTION_DECRYPT)
|
||||
.putExtra("id", data.message.id)
|
||||
.putExtra("to", ((InternetAddress) data.message.to[0]).getAddress()));
|
||||
.putExtra("id", data.message.id));
|
||||
}
|
||||
|
||||
private void onMore(final ActionData data) {
|
||||
|
|
Loading…
Reference in a new issue