|
@@ -292,6 +292,8 @@ public class ConversationsListController extends BaseController implements Searc
|
|
|
|
|
|
@Override
|
|
@Override
|
|
protected void onAttach(@NonNull View view) {
|
|
protected void onAttach(@NonNull View view) {
|
|
|
|
+ Log.d(TAG, "onAttach: Controller: " + System.identityHashCode(this) +
|
|
|
|
+ " Activity: " + System.identityHashCode(getActivity()));
|
|
super.onAttach(view);
|
|
super.onAttach(view);
|
|
|
|
|
|
new ClosedInterfaceImpl().setUpPushTokenRegistration();
|
|
new ClosedInterfaceImpl().setUpPushTokenRegistration();
|
|
@@ -317,6 +319,8 @@ public class ConversationsListController extends BaseController implements Searc
|
|
|
|
|
|
@Override
|
|
@Override
|
|
protected void onDetach(@NonNull View view) {
|
|
protected void onDetach(@NonNull View view) {
|
|
|
|
+ Log.d(TAG, "onDetach: Controller: " + System.identityHashCode(this) +
|
|
|
|
+ " Activity: " + System.identityHashCode(getActivity()));
|
|
super.onDetach(view);
|
|
super.onDetach(view);
|
|
eventBus.unregister(this);
|
|
eventBus.unregister(this);
|
|
}
|
|
}
|
|
@@ -512,11 +516,14 @@ public class ConversationsListController extends BaseController implements Searc
|
|
|
|
|
|
int apiVersion = ApiUtils.getConversationApiVersion(currentUser, new int[]{ApiUtils.APIv4, ApiUtils.APIv3, 1});
|
|
int apiVersion = ApiUtils.getConversationApiVersion(currentUser, new int[]{ApiUtils.APIv4, ApiUtils.APIv3, 1});
|
|
|
|
|
|
|
|
+ long startNanoTime = System.nanoTime();
|
|
|
|
+ Log.d(TAG, "fetchData - getRooms - calling: " + startNanoTime);
|
|
roomsQueryDisposable = ncApi.getRooms(credentials, ApiUtils.getUrlForRooms(apiVersion,
|
|
roomsQueryDisposable = ncApi.getRooms(credentials, ApiUtils.getUrlForRooms(apiVersion,
|
|
currentUser.getBaseUrl()))
|
|
currentUser.getBaseUrl()))
|
|
.subscribeOn(Schedulers.io())
|
|
.subscribeOn(Schedulers.io())
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
.subscribe(roomsOverall -> {
|
|
.subscribe(roomsOverall -> {
|
|
|
|
+ Log.d(TAG, "fetchData - getRooms - got response: " + startNanoTime);
|
|
|
|
|
|
if (adapterWasNull) {
|
|
if (adapterWasNull) {
|
|
adapterWasNull = false;
|
|
adapterWasNull = false;
|
|
@@ -650,6 +657,7 @@ public class ConversationsListController extends BaseController implements Searc
|
|
searchableConversationItems.addAll(openConversationItems);
|
|
searchableConversationItems.addAll(openConversationItems);
|
|
|
|
|
|
}, throwable -> {
|
|
}, throwable -> {
|
|
|
|
+ Log.e(TAG, "fetchData - getRooms - ERROR", throwable);
|
|
handleHttpExceptions(throwable);
|
|
handleHttpExceptions(throwable);
|
|
dispose(openConversationsQueryDisposable);
|
|
dispose(openConversationsQueryDisposable);
|
|
}, () -> {
|
|
}, () -> {
|