forked from mirrors/Fedilab
Fix crash issue Android 21
This commit is contained in:
parent
523156d2d0
commit
debd8d370d
1 changed files with 4 additions and 1 deletions
|
@ -1503,7 +1503,10 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
|||
holder.timer.scheduleAtFixedRate(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
holder.binding.statusContent.invalidate();
|
||||
Handler mainHandler = new Handler(Looper.getMainLooper());
|
||||
Runnable myRunnable = () -> holder.binding.statusContent.invalidate();
|
||||
mainHandler.post(myRunnable);
|
||||
|
||||
}
|
||||
}, 100, 100);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue