Fix crash issue Android 21

This commit is contained in:
Thomas 2022-05-04 19:00:01 +02:00
parent 523156d2d0
commit debd8d370d

View file

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