1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 01:06:04 +00:00

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

View file

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