diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 3b5da30448..fbd7b1d813 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -75,6 +75,7 @@ import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; +import android.widget.ToggleButton; import androidx.annotation.NonNull; import androidx.annotation.Nullable; @@ -174,7 +175,9 @@ public class AdapterMessage extends RecyclerView.Adapter 0 ? View.VISIBLE : View.GONE); + tvBody.setVisibility(View.INVISIBLE); + vwBody.setVisibility(View.GONE); + + Spanned body = properties.getBody(message.id); + tvBody.setText(body); + tvBody.setMovementMethod(null); + + Bundle args = new Bundle(); + args.putSerializable("message", message); + bodyTask.execute(context, owner, args, "message:body"); } private class OriginalMessage { @@ -1724,7 +1768,7 @@ public class AdapterMessage extends RecyclerView.Adapter -