Try to fix a bug

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-06-04 21:27:30 +02:00
parent 5ca20d3ea8
commit a3b674c7e7

View File

@ -490,8 +490,8 @@ public class ChatController extends BaseController implements MessagesListAdapte
getRouter().popToRoot(new VerticalChangeHandler());
} else {
getRouter().setRoot(RouterTransaction.with(new MagicBottomNavigationController())
.pushChangeHandler(new HorizontalChangeHandler())
.popChangeHandler(new HorizontalChangeHandler()));
.pushChangeHandler(new HorizontalChangeHandler())
.popChangeHandler(new HorizontalChangeHandler()));
}
}
@ -540,13 +540,13 @@ public class ChatController extends BaseController implements MessagesListAdapte
myFirstMessage = message;
}
getActivity().runOnUiThread(() -> {
if (popupBubble.isShown()) {
popupBubble.hide();
}
if (popupBubble != null && popupBubble.isShown()) {
popupBubble.hide();
}
if (messagesList != null) {
messagesList.smoothScrollToPosition(0);
});
}
}
@Override