Use main looper for boundary post back

This commit is contained in:
M66B 2020-08-22 14:16:28 +02:00
parent 2330f69e00
commit 1f43660378
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ package eu.faircode.email;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import androidx.annotation.NonNull;
@ -112,7 +113,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
}
void setCallback(IBoundaryCallbackMessages intf) {
this.handler = new Handler();
this.handler = new Handler(Looper.getMainLooper());
this.intf = intf;
this.state = new State();
}