You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I have successfully implemented MVP architecture in my android app but When I am loading data inside my fragment, the UI hangs till the loading finishes. When Loading finishes, and data is loaded inside fragment, then only I can interact with click on different buttons.
Currently I have successfully implemented MVP architecture in my android app but When I am loading data inside my fragment, the UI hangs till the loading finishes. When Loading finishes, and data is loaded inside fragment, then only I can interact with click on different buttons.
This is my network api call
public Single<List<PostsModel>> getFacebookFriendsFeed(String id_user_name, String user_id, String facebookId, String page) { return Rx2AndroidNetworking.get(ApiEndPoint.GET_POST_DATA) // .addHeaders(mApiHeader.getProtectedApiHeader()) .addQueryParameter("id_user_name", id_user_name) .addQueryParameter("user_id", user_id) .addQueryParameter("facebookId", facebookId) .addQueryParameter("page", page) .build() .getObjectListSingle(PostsModel.class) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()); }
This is my presenter implementation of the API
`@Override
public void getFacebookPostsOnline(String id_user_name, String user_id, String facebookId, String page) {
Please let me know where I am going wrong in making the UI more async. and do you need any more details about my code.
The text was updated successfully, but these errors were encountered: