Small behavior improvement

This commit is contained in:
M66B 2020-02-14 09:21:43 +01:00
parent 8b08d2a38d
commit 9a86bbb025
1 changed files with 10 additions and 3 deletions

View File

@ -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();