mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
prevent scroll on update
This commit is contained in:
parent
1b0af321f7
commit
76590055c8
1 changed files with 15 additions and 2 deletions
|
@ -1477,8 +1477,21 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
// Message text
|
// Message text
|
||||||
tvNoInternetBody.setVisibility(suitable || message.content ? View.GONE : View.VISIBLE);
|
tvNoInternetBody.setVisibility(suitable || message.content ? View.GONE : View.VISIBLE);
|
||||||
grpDownloading.setVisibility(message.content ? View.GONE : View.VISIBLE);
|
grpDownloading.setVisibility(message.content ? View.GONE : View.VISIBLE);
|
||||||
tvBody.setVisibility(View.GONE);
|
|
||||||
wvBody.setVisibility(View.GONE);
|
int height = properties.getHeight(message.id, 0);
|
||||||
|
if (height == 0) {
|
||||||
|
tvBody.setVisibility(View.GONE);
|
||||||
|
wvBody.setVisibility(View.GONE);
|
||||||
|
} else {
|
||||||
|
boolean show_full = properties.getValue("full", message.id);
|
||||||
|
if (show_full) {
|
||||||
|
wvBody.setVisibility(View.INVISIBLE);
|
||||||
|
wvBody.setMinimumHeight(height);
|
||||||
|
} else {
|
||||||
|
tvBody.setVisibility(View.INVISIBLE);
|
||||||
|
tvBody.setMinHeight(height);
|
||||||
|
}
|
||||||
|
}
|
||||||
pbBody.setVisibility(View.GONE);
|
pbBody.setVisibility(View.GONE);
|
||||||
grpAction.setVisibility(View.GONE);
|
grpAction.setVisibility(View.GONE);
|
||||||
clearActions();
|
clearActions();
|
||||||
|
|
Loading…
Reference in a new issue