mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-23 13:40:43 +01:00
Fix up bugs
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
f8bb67f3fe
commit
0d94501d29
@ -159,12 +159,10 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
|
|
||||||
public ContactsController() {
|
public ContactsController() {
|
||||||
super();
|
super();
|
||||||
setHasOptionsMenu(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ContactsController(Bundle args) {
|
public ContactsController(Bundle args) {
|
||||||
super(args);
|
super(args);
|
||||||
setHasOptionsMenu(true);
|
|
||||||
if (args.containsKey(BundleKeys.KEY_NEW_CONVERSATION)) {
|
if (args.containsKey(BundleKeys.KEY_NEW_CONVERSATION)) {
|
||||||
isNewConversationView = true;
|
isNewConversationView = true;
|
||||||
}
|
}
|
||||||
@ -178,6 +176,7 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
@Override
|
@Override
|
||||||
protected void onAttach(@NonNull View view) {
|
protected void onAttach(@NonNull View view) {
|
||||||
super.onAttach(view);
|
super.onAttach(view);
|
||||||
|
setHasOptionsMenu(true);
|
||||||
eventBus.register(this);
|
eventBus.register(this);
|
||||||
|
|
||||||
if (isNewConversationView) {
|
if (isNewConversationView) {
|
||||||
@ -738,7 +737,8 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
} else {
|
} else {
|
||||||
bottomSheet.setCancelable(bottomSheetLockEvent.isCancelable());
|
bottomSheet.setCancelable(bottomSheetLockEvent.isCancelable());
|
||||||
if (bottomSheet.isShowing() && bottomSheetLockEvent.isCancel()) {
|
if (bottomSheet.isShowing() && bottomSheetLockEvent.isCancel()) {
|
||||||
bottomSheet.cancel();
|
new Handler().postDelayed(() -> bottomSheet.cancel(), bottomSheetLockEvent.getDelay());
|
||||||
|
getRouter().popCurrentController();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user