Send dismiss event in main thread
This commit is contained in:
parent
8f7a29bd7a
commit
71f73210c9
1 changed files with 1 additions and 1 deletions
|
@ -1537,7 +1537,7 @@ public class LocalInsightPlugin extends PluginBase implements PumpInterface, Con
|
|||
public void onStateChanged(InsightState state) {
|
||||
if (state == InsightState.CONNECTED) {
|
||||
statusLoaded = false;
|
||||
MainApp.bus().post(new EventDismissNotification(Notification.INSIGHT_TIMEOUT_DURING_HANDSHAKE));
|
||||
new Handler(Looper.getMainLooper()).post(() -> MainApp.bus().post(new EventDismissNotification(Notification.INSIGHT_TIMEOUT_DURING_HANDSHAKE)));
|
||||
} else if (state == InsightState.NOT_PAIRED) {
|
||||
connectionService.withdrawConnectionRequest(this);
|
||||
statusLoaded = false;
|
||||
|
|
Loading…
Reference in a new issue