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:
parent
2330f69e00
commit
1f43660378
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue