mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +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() {
|
||||
Log.d(TAG, "leaveRoom - leaveRoom - completed: " + startNanoTime)
|
||||
dispose()
|
||||
}
|
||||
})
|
||||
|
@ -292,6 +292,8 @@ public class ConversationsListController extends BaseController implements Searc
|
||||
|
||||
@Override
|
||||
protected void onAttach(@NonNull View view) {
|
||||
Log.d(TAG, "onAttach: Controller: " + System.identityHashCode(this) +
|
||||
" Activity: " + System.identityHashCode(getActivity()));
|
||||
super.onAttach(view);
|
||||
|
||||
new ClosedInterfaceImpl().setUpPushTokenRegistration();
|
||||
@ -317,6 +319,8 @@ public class ConversationsListController extends BaseController implements Searc
|
||||
|
||||
@Override
|
||||
protected void onDetach(@NonNull View view) {
|
||||
Log.d(TAG, "onDetach: Controller: " + System.identityHashCode(this) +
|
||||
" Activity: " + System.identityHashCode(getActivity()));
|
||||
super.onDetach(view);
|
||||
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});
|
||||
|
||||
long startNanoTime = System.nanoTime();
|
||||
Log.d(TAG, "fetchData - getRooms - calling: " + startNanoTime);
|
||||
roomsQueryDisposable = ncApi.getRooms(credentials, ApiUtils.getUrlForRooms(apiVersion,
|
||||
currentUser.getBaseUrl()))
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(roomsOverall -> {
|
||||
Log.d(TAG, "fetchData - getRooms - got response: " + startNanoTime);
|
||||
|
||||
if (adapterWasNull) {
|
||||
adapterWasNull = false;
|
||||
@ -650,6 +657,7 @@ public class ConversationsListController extends BaseController implements Searc
|
||||
searchableConversationItems.addAll(openConversationItems);
|
||||
|
||||
}, throwable -> {
|
||||
Log.e(TAG, "fetchData - getRooms - ERROR", throwable);
|
||||
handleHttpExceptions(throwable);
|
||||
dispose(openConversationsQueryDisposable);
|
||||
}, () -> {
|
||||
|
Loading…
Reference in New Issue
Block a user