mirror of https://github.com/M66B/FairEmail.git
Small behavior improvement
This commit is contained in:
parent
8b08d2a38d
commit
9a86bbb025
|
@ -1476,7 +1476,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
}.setLog(false).execute(context, owner, sargs, "message:actions");
|
||||
|
||||
// Message text
|
||||
pbBody.setVisibility(suitable || message.content ? View.VISIBLE : View.GONE);
|
||||
tvNoInternetBody.setVisibility(suitable || message.content ? View.GONE : View.VISIBLE);
|
||||
|
||||
cowner.recreate();
|
||||
|
@ -1655,6 +1654,16 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
args.putInt("zoom", zoom);
|
||||
|
||||
new SimpleTask<Object>() {
|
||||
@Override
|
||||
protected void onPreExecute(Bundle args) {
|
||||
pbBody.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPostExecute(Bundle args) {
|
||||
pbBody.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Object onExecute(final Context context, final Bundle args) throws IOException {
|
||||
TupleMessageEx message = (TupleMessageEx) args.getSerializable("message");
|
||||
|
@ -1839,8 +1848,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
} else
|
||||
throw new IllegalStateException("Result=" + result);
|
||||
|
||||
pbBody.setVisibility(View.GONE);
|
||||
|
||||
// Show attachments
|
||||
cowner.start();
|
||||
|
||||
|
|
Loading…
Reference in New Issue