Revert "Debug correlation ID"

This reverts commit e78602db93.
pull/194/merge
M66B 3 years ago
parent d79b578222
commit 2aa333ee17

@ -2908,14 +2908,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private void bindExtras(TupleMessageEx message) { private void bindExtras(TupleMessageEx message) {
int resid = 0; int resid = 0;
if (infra && message.infrastructure != null) { if (infra && message.infrastructure != null) {
if ("fairemail".equals(message.infrastructure))
resid = R.mipmap.ic_launcher_round;
else {
String resname = "infra_" + message.infrastructure; String resname = "infra_" + message.infrastructure;
resid = context.getResources() resid = context.getResources()
.getIdentifier(resname, "drawable", context.getPackageName()); .getIdentifier(resname, "drawable", context.getPackageName());
} }
}
if (resid != 0) if (resid != 0)
ibInfrastructure.setImageResource(resid); ibInfrastructure.setImageResource(resid);
ibInfrastructure.setVisibility(resid != 0 ? View.VISIBLE : View.GONE); ibInfrastructure.setVisibility(resid != 0 ? View.VISIBLE : View.GONE);
@ -4974,14 +4970,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
} }
private void onActionShowInfra(TupleMessageEx message) { private void onActionShowInfra(TupleMessageEx message) {
int resid;
if ("fairemail".equals(message.infrastructure))
resid = R.string.app_name;
else {
String resname = "infra_" + message.infrastructure; String resname = "infra_" + message.infrastructure;
resid = context.getResources() int resid = context.getResources()
.getIdentifier(resname, "string", context.getPackageName()); .getIdentifier(resname, "string", context.getPackageName());
}
String infra = (resid < 0 ? message.infrastructure : context.getString(resid)); String infra = (resid < 0 ? message.infrastructure : context.getString(resid));
ToastEx.makeText(context, infra, Toast.LENGTH_LONG).show(); ToastEx.makeText(context, infra, Toast.LENGTH_LONG).show();
} }

@ -2024,12 +2024,6 @@ public class MessageHelper {
return "flowmailer"; return "flowmailer";
} }
if (BuildConfig.DEBUG) {
String fairemail = imessage.getHeader(HEADER_CORRELATION_ID, null);
if (!TextUtils.isEmpty(fairemail))
return "fairemail";
}
return null; return null;
} }

@ -626,7 +626,6 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
message.ui_hide = true; message.ui_hide = true;
message.ui_busy = Long.MAX_VALUE; // Needed to keep messages in user folders message.ui_busy = Long.MAX_VALUE; // Needed to keep messages in user folders
message.error = null; message.error = null;
message.infrastructure = "fairemail";
message.id = db.message().insertMessage(message); message.id = db.message().insertMessage(message);
File file = EntityMessage.getFile(this, message.id); File file = EntityMessage.getFile(this, message.id);

Loading…
Cancel
Save