mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 20:19:42 +01:00
Yet more diagnostic logging
Also in ConversationsListController Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
This commit is contained in:
parent
cfcfcf5bc4
commit
505bcdfe20
@ -1791,6 +1791,7 @@ class ChatController(args: Bundle) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onComplete() {
|
override fun onComplete() {
|
||||||
|
Log.d(TAG, "leaveRoom - leaveRoom - completed: " + startNanoTime)
|
||||||
dispose()
|
dispose()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -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);
|
||||||
}, () -> {
|
}, () -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user