mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Dont refresh is password is wrong
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
a0b30abb1f
commit
f6b14d1ec8
@ -222,7 +222,8 @@ public class OperationsMenuController extends BaseController {
|
|||||||
} else {
|
} else {
|
||||||
resultImageView.setImageDrawable(ColorUtils.getTintedDrawable(getResources(), R.drawable
|
resultImageView.setImageDrawable(ColorUtils.getTintedDrawable(getResources(), R.drawable
|
||||||
.ic_cancel_black_24dp, R.color.nc_darkRed));
|
.ic_cancel_black_24dp, R.color.nc_darkRed));
|
||||||
okButton.setOnClickListener(v -> eventBus.post(new BottomSheetLockEvent(true, 0, true, true)));
|
okButton.setOnClickListener(v -> eventBus.post(new BottomSheetLockEvent(true, 0, operationCode != 99,
|
||||||
|
true)));
|
||||||
okButton.setVisibility(View.VISIBLE);
|
okButton.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -272,7 +273,6 @@ public class OperationsMenuController extends BaseController {
|
|||||||
if (operationCode != 99 || !(e instanceof HttpException)) {
|
if (operationCode != 99 || !(e instanceof HttpException)) {
|
||||||
showResultImage(false);
|
showResultImage(false);
|
||||||
} else {
|
} else {
|
||||||
HttpException httpException = (HttpException) e;
|
|
||||||
if (((HttpException) e).response().code() == 403) {
|
if (((HttpException) e).response().code() == 403) {
|
||||||
// just make it cancelable again
|
// just make it cancelable again
|
||||||
ErrorMessageHolder.getInstance().setMessageType(ErrorMessageHolder.ErrorMessageType.CALL_PASSWORD_WRONG);
|
ErrorMessageHolder.getInstance().setMessageType(ErrorMessageHolder.ErrorMessageType.CALL_PASSWORD_WRONG);
|
||||||
|
Loading…
Reference in New Issue
Block a user