From fd238846980b17d893d703ac8e56869bd3f23c89 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 30 十一月 2022 23:10:13 +0800 Subject: [PATCH] 哀悼模式 --- library-EventBus/src/de/greenrobot/event/util/ErrorDialogManager.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/library-EventBus/src/de/greenrobot/event/util/ErrorDialogManager.java b/library-EventBus/src/de/greenrobot/event/util/ErrorDialogManager.java index dd0f4d1..2ec716b 100644 --- a/library-EventBus/src/de/greenrobot/event/util/ErrorDialogManager.java +++ b/library-EventBus/src/de/greenrobot/event/util/ErrorDialogManager.java @@ -10,7 +10,7 @@ import androidx.fragment.app.FragmentActivity; import androidx.fragment.app.FragmentManager; import android.util.Log; -import de.greenrobot.event.EventBus; +import org.greenrobot.eventbus.EventBus; /** * Central class for app that want to use event based error dialogs.<br/> @@ -61,6 +61,7 @@ super.onPause(); } + @Subscribe public void onEventMainThread(ThrowableFailureEvent event) { if (!isInExecutionScope(executionScope, event)) { return; @@ -118,6 +119,7 @@ super.onPause(); } + @Subscribe public void onEventMainThread(ThrowableFailureEvent event) { if (!isInExecutionScope(executionScope, event)) { return; -- Gitblit v1.8.0