mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Added fail-safe
This commit is contained in:
parent
99395eccc6
commit
12ae62de73
1 changed files with 5 additions and 1 deletions
|
@ -3256,7 +3256,11 @@ public class FragmentMessages extends FragmentBase
|
|||
|
||||
private void redraw(RecyclerView.ViewHolder vh) {
|
||||
if (vh != null && itemTouchHelper != null)
|
||||
try {
|
||||
itemTouchHelper.onChildViewDetachedFromWindow(vh.itemView);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
rvMessage.post(new RunnableEx("redraw") {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue