| | |
| | | * @param topicTag -
|
| | | * @param o -
|
| | | */
|
| | | public synchronized void post(String topicTag, @NonNull Object o) {
|
| | | public synchronized void post(String topicTag, final Object o) {
|
| | | try {
|
| | | for (String key : EVENT.keySet()) {
|
| | | if (!isMatch(key, topicTag)) {
|
| | |
| | | }
|
| | | //开发分发事件
|
| | | for (EventListener listener : ALL_TOPICS_EVENT) {
|
| | | ThreadToolUtils.getInstance().runOnUiThread(new Runnable() {
|
| | | @Override
|
| | | public void run() {
|
| | | // ThreadToolUtils.getInstance().runOnUiThread(new Runnable() {
|
| | | // @Override
|
| | | // public void run() {
|
| | | if (listener != null) {
|
| | | listener.onMessage(o);
|
| | | }
|
| | | }
|
| | | });
|
| | | // }
|
| | | // });
|
| | | }
|
| | | }catch (Exception e){
|
| | | LogUtils.e(e.getMessage());
|