diff --git a/ART/android/sub_app/fermat-art-android-sub-app-artist-community-bitdubai/src/main/java/com/bitdubai/sub_app_artist_community/fragments/ConnectionsWorldFragment.java b/ART/android/sub_app/fermat-art-android-sub-app-artist-community-bitdubai/src/main/java/com/bitdubai/sub_app_artist_community/fragments/ConnectionsWorldFragment.java index 8cd148b8a88..0ee01642457 100644 --- a/ART/android/sub_app/fermat-art-android-sub-app-artist-community-bitdubai/src/main/java/com/bitdubai/sub_app_artist_community/fragments/ConnectionsWorldFragment.java +++ b/ART/android/sub_app/fermat-art-android-sub-app-artist-community-bitdubai/src/main/java/com/bitdubai/sub_app_artist_community/fragments/ConnectionsWorldFragment.java @@ -33,6 +33,7 @@ import com.bitdubai.fermat_api.layer.modules.exceptions.CantGetSelectedActorIdentityException; import com.bitdubai.fermat_art_api.layer.actor_connection.artist.enums.ArtistActorConnectionNotificationType; import com.bitdubai.fermat_art_api.layer.actor_connection.fan.enums.FanActorConnectionNotificationType; +import com.bitdubai.fermat_art_api.layer.sub_app_module.community.artist.exceptions.CantListArtistsException; import com.bitdubai.fermat_art_api.layer.sub_app_module.community.artist.interfaces.ArtistCommunityInformation; import com.bitdubai.fermat_art_api.layer.sub_app_module.community.artist.interfaces.ArtistCommunitySelectableIdentity; import com.bitdubai.fermat_art_api.layer.sub_app_module.community.artist.interfaces.ArtistCommunitySubAppModuleManager; @@ -381,8 +382,13 @@ public void onUpdateViewOnUIThread(String code){ { //update intra user list if(code.equals(ArtistActorConnectionNotificationType.ACTOR_CONNECTED.getCode())){ - invalidate(); - onRefresh(); + getActivity().runOnUiThread(new Runnable() { + @Override + public void run() { + invalidate(); + onRefresh(); + } + }); } diff --git a/ART/android/sub_app/fermat-art-android-sub-app-fan-community-bitdubai/src/main/java/com/bitdubai/sub_app/fan_community/fragments/ConnectionsWorldFragment.java b/ART/android/sub_app/fermat-art-android-sub-app-fan-community-bitdubai/src/main/java/com/bitdubai/sub_app/fan_community/fragments/ConnectionsWorldFragment.java index b2f740784a8..5eeb514b036 100644 --- a/ART/android/sub_app/fermat-art-android-sub-app-fan-community-bitdubai/src/main/java/com/bitdubai/sub_app/fan_community/fragments/ConnectionsWorldFragment.java +++ b/ART/android/sub_app/fermat-art-android-sub-app-fan-community-bitdubai/src/main/java/com/bitdubai/sub_app/fan_community/fragments/ConnectionsWorldFragment.java @@ -366,8 +366,13 @@ public void onUpdateViewOnUIThread(String code){ { //update intra user list if(code.equals(FanActorConnectionNotificationType.ACTOR_CONNECTED.getCode())){ - invalidate(); - onRefresh(); + getActivity().runOnUiThread(new Runnable() { + @Override + public void run() { + invalidate(); + onRefresh(); + } + }); } } catch(Exception e) diff --git a/ART/plugin/actor_connection/fermat-art-plugin-actor-connection-artist-bitdubai/src/main/java/com/bitdubai/fermat_art_plugin/layer/actor_connection/artist/developer/bitdubai/version_1/structure/ActorConnectionEventsActions.java b/ART/plugin/actor_connection/fermat-art-plugin-actor-connection-artist-bitdubai/src/main/java/com/bitdubai/fermat_art_plugin/layer/actor_connection/artist/developer/bitdubai/version_1/structure/ActorConnectionEventsActions.java index 27445d6d0db..910cb797641 100644 --- a/ART/plugin/actor_connection/fermat-art-plugin-actor-connection-artist-bitdubai/src/main/java/com/bitdubai/fermat_art_plugin/layer/actor_connection/artist/developer/bitdubai/version_1/structure/ActorConnectionEventsActions.java +++ b/ART/plugin/actor_connection/fermat-art-plugin-actor-connection-artist-bitdubai/src/main/java/com/bitdubai/fermat_art_plugin/layer/actor_connection/artist/developer/bitdubai/version_1/structure/ActorConnectionEventsActions.java @@ -125,7 +125,7 @@ public void handleArtistUpdateEvent() throws CantHandleNewsEventException { case ACCEPT: this.handleAcceptConnection(request.getRequestId()); broadcaster.publish( - BroadcasterType.NOTIFICATION_SERVICE, + BroadcasterType.UPDATE_VIEW, SubAppsPublicKeys.ART_ARTIST_COMMUNITY.getCode(), ArtistActorConnectionNotificationType.ACTOR_CONNECTED.getCode()); break; diff --git a/ART/plugin/actor_connection/fermat-art-plugin-actor-connection-fan-bitdubai/src/main/java/com/bitdubai/fermat_art_plugin/layer/actor_connection/fan/developer/bitdubai/version1/structure/ActorConnectionEventActions.java b/ART/plugin/actor_connection/fermat-art-plugin-actor-connection-fan-bitdubai/src/main/java/com/bitdubai/fermat_art_plugin/layer/actor_connection/fan/developer/bitdubai/version1/structure/ActorConnectionEventActions.java index 35431e62987..2a4d5baf13e 100644 --- a/ART/plugin/actor_connection/fermat-art-plugin-actor-connection-fan-bitdubai/src/main/java/com/bitdubai/fermat_art_plugin/layer/actor_connection/fan/developer/bitdubai/version1/structure/ActorConnectionEventActions.java +++ b/ART/plugin/actor_connection/fermat-art-plugin-actor-connection-fan-bitdubai/src/main/java/com/bitdubai/fermat_art_plugin/layer/actor_connection/fan/developer/bitdubai/version1/structure/ActorConnectionEventActions.java @@ -635,7 +635,7 @@ public void handleAcceptConnection(final UUID connectionId, final EventSource ev ); if (eventSource == EventSource.ACTOR_NETWORK_SERVICE_ARTIST){ broadcaster.publish( - BroadcasterType.NOTIFICATION_SERVICE, + BroadcasterType.UPDATE_VIEW, SubAppsPublicKeys.ART_ARTIST_COMMUNITY.getCode(), ArtistActorConnectionNotificationType.ACTOR_CONNECTED.getCode()); artistNetworkService.confirm(connectionId); @@ -643,7 +643,7 @@ public void handleAcceptConnection(final UUID connectionId, final EventSource ev else{ fanNetworkService.confirm(connectionId); broadcaster.publish( - BroadcasterType.NOTIFICATION_SERVICE, + BroadcasterType.UPDATE_VIEW, SubAppsPublicKeys.ART_FAN_COMMUNITY.getCode(), FanActorConnectionNotificationType.ACTOR_CONNECTED.getCode()); }