1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Added debug info

This commit is contained in:
M66B 2020-04-16 11:18:25 +02:00
parent e00e4d90ed
commit 2d0fe5433a

View file

@ -982,7 +982,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (viewType == ViewType.FOLDER) if (viewType == ViewType.FOLDER)
tvFolder.setText(outbox ? message.identityEmail : message.accountName); tvFolder.setText(outbox ? message.identityEmail : message.accountName);
else if (viewType == ViewType.THREAD || viewType == ViewType.SEARCH) else if (viewType == ViewType.THREAD || viewType == ViewType.SEARCH)
tvFolder.setText(message.getFolderName(context)); tvFolder.setText(message.getFolderName(context) +
(BuildConfig.DEBUG ? ":" + message.id : ""));
else else
tvFolder.setText(message.accountName + "/" + message.getFolderName(context)); tvFolder.setText(message.accountName + "/" + message.getFolderName(context));
@ -4920,7 +4921,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (properties.getValue("expanded", id)) { if (properties.getValue("expanded", id)) {
Context context = parentFragment.getContext(); Context context = parentFragment.getContext();
if (context != null) if (context != null)
ToastEx.makeText(context, msg, Toast.LENGTH_SHORT).show(); ToastEx.makeText(context, msg + " id=" + id, Toast.LENGTH_SHORT).show();
} }
} }
}); });