1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-23 16:25:30 +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.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();
}