1.129 release

pull/146/head 1.129
M66B 6 years ago
parent 745be76439
commit b6e466ea51

@ -6,8 +6,8 @@ android {
applicationId "eu.faircode.email" applicationId "eu.faircode.email"
minSdkVersion 23 minSdkVersion 23
targetSdkVersion 28 targetSdkVersion 28
versionCode 128 versionCode 129
versionName "1.128" versionName "1.129"
archivesBaseName = "FairEmail-v$versionName" archivesBaseName = "FairEmail-v$versionName"
javaCompileOptions { javaCompileOptions {

@ -261,8 +261,7 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
tvTime.setText(null); tvTime.setText(null);
ivAttachments.setVisibility(View.GONE); ivAttachments.setVisibility(View.GONE);
tvSubject.setText(null); tvSubject.setText(null);
if (tvPreview != null) tvPreview.setVisibility(View.GONE);
tvPreview.setText(null);
tvFolder.setText(null); tvFolder.setText(null);
tvCount.setText(null); tvCount.setText(null);
ivThread.setVisibility(View.GONE); ivThread.setVisibility(View.GONE);
@ -334,9 +333,8 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
ivAttachments.setVisibility(message.attachments > 0 ? View.VISIBLE : View.GONE); ivAttachments.setVisibility(message.attachments > 0 ? View.VISIBLE : View.GONE);
tvSubject.setText(message.subject); tvSubject.setText(message.subject);
tvPreview.setText(null); tvPreview.setVisibility(View.GONE);
tvPreview.setVisibility(preview && message.content ? View.VISIBLE : View.GONE); if (preview && message.content) {
if (message.content) {
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putSerializable("message", message); args.putSerializable("message", message);
@ -356,6 +354,7 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
@Override @Override
protected void onLoaded(Bundle args, String preview) { protected void onLoaded(Bundle args, String preview) {
tvPreview.setText(preview); tvPreview.setText(preview);
tvPreview.setVisibility(View.VISIBLE);
tvPreview.setHasTransientState(false); tvPreview.setHasTransientState(false);
} }

Loading…
Cancel
Save