mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
Lock & unlock bottom sheet
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
f6b14d1ec8
commit
00938d8358
@ -117,7 +117,6 @@ public class EntryMenuController extends BaseController {
|
||||
public void onProceedButtonClick() {
|
||||
Bundle bundle;
|
||||
if (operationCode == 99) {
|
||||
eventBus.post(new BottomSheetLockEvent(false, 0, false, false));
|
||||
UserEntity userEntity = userUtils.getCurrentUser();
|
||||
|
||||
if (userEntity != null) {
|
||||
@ -131,7 +130,6 @@ public class EntryMenuController extends BaseController {
|
||||
|
||||
} else if (operationCode != 7) {
|
||||
eventBus.post(new BottomSheetLockEvent(false, 0, false, false));
|
||||
|
||||
bundle = new Bundle();
|
||||
if (operationCode == 4 || operationCode == 6) {
|
||||
room.setPassword(editText.getText().toString());
|
||||
@ -149,7 +147,7 @@ public class EntryMenuController extends BaseController {
|
||||
intent.setComponent(new ComponentName(packageName, name));
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
getActivity().startActivity(intent);
|
||||
eventBus.post(new BottomSheetLockEvent(true, 0, false, false));
|
||||
eventBus.post(new BottomSheetLockEvent(true, 0, false, true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -274,7 +274,8 @@ public class OperationsMenuController extends BaseController {
|
||||
showResultImage(false);
|
||||
} else {
|
||||
if (((HttpException) e).response().code() == 403) {
|
||||
// just make it cancelable again
|
||||
eventBus.post(new BottomSheetLockEvent(true, 0, false,
|
||||
false));
|
||||
ErrorMessageHolder.getInstance().setMessageType(ErrorMessageHolder.ErrorMessageType.CALL_PASSWORD_WRONG);
|
||||
getRouter().popCurrentController();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user