Fix issues with the bottom sheet

This commit is contained in:
Mario Danic 2018-11-29 16:21:41 +01:00
parent 2ec45391de
commit 40b03de7a7
3 changed files with 6 additions and 14 deletions

View File

@ -261,9 +261,7 @@ public class CallMenuController extends BaseController implements FlexibleAdapte
eventBus.post(new BottomSheetLockEvent(true, 0, false, true));
bundle = new Bundle();
bundle.putBoolean(BundleKeys.KEY_NEW_CONVERSATION, true);
getParentController().getParentController().getRouter().pushController((RouterTransaction.with
(new ContactsController
(bundle))
getParentController().getRouter().pushController((RouterTransaction.with(new ContactsController(bundle))
.pushChangeHandler(new VerticalChangeHandler())
.popChangeHandler(new VerticalChangeHandler())));
} else {

View File

@ -134,6 +134,7 @@ public class EntryMenuController extends BaseController {
if (originalBundle.containsKey(BundleKeys.KEY_SPREED_CAPABILITIES)) {
bundle.putParcelable(BundleKeys.KEY_SPREED_CAPABILITIES, originalBundle.getParcelable(BundleKeys.KEY_SPREED_CAPABILITIES));
}
getRouter().pushController(RouterTransaction.with(new OperationsMenuController(bundle))
.pushChangeHandler(new HorizontalChangeHandler())
.popChangeHandler(new HorizontalChangeHandler()));

View File

@ -630,17 +630,10 @@ public class OperationsMenuController extends BaseController {
conversationIntent.putExtras(bundle);
if (getParentController() != null) {
if (getParentController().getParentController() != null) {
getParentController().getParentController().getRouter().pushController(RouterTransaction.with(new
ChatController(bundle))
.pushChangeHandler(new HorizontalChangeHandler())
.popChangeHandler(new HorizontalChangeHandler()));
} else {
getParentController().getRouter().pushController(RouterTransaction.with(new
ChatController(bundle))
.pushChangeHandler(new HorizontalChangeHandler())
.popChangeHandler(new HorizontalChangeHandler()));
}
getParentController().getRouter().pushController(RouterTransaction.with(new
ChatController(bundle))
.pushChangeHandler(new HorizontalChangeHandler())
.popChangeHandler(new HorizontalChangeHandler()));
}
} else {