mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 20:19:42 +01:00
combine nested ifs
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
46a18ca3a0
commit
faf9ce2884
@ -158,12 +158,13 @@ class LockedController : NewBaseController(R.layout.controller_locked) {
|
|||||||
super.onActivityResult(requestCode, resultCode, data)
|
super.onActivityResult(requestCode, resultCode, data)
|
||||||
if (requestCode == REQUEST_CODE_CONFIRM_DEVICE_CREDENTIALS) {
|
if (requestCode == REQUEST_CODE_CONFIRM_DEVICE_CREDENTIALS) {
|
||||||
if (resultCode == Activity.RESULT_OK) {
|
if (resultCode == Activity.RESULT_OK) {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
if (
|
||||||
if (SecurityUtils.checkIfWeAreAuthenticated(appPreferences!!.screenLockTimeout)) {
|
Build.VERSION.SDK_INT >= Build.VERSION_CODES.M &&
|
||||||
|
SecurityUtils.checkIfWeAreAuthenticated(appPreferences!!.screenLockTimeout)
|
||||||
|
) {
|
||||||
Log.d(TAG, "All went well, dismiss locked controller")
|
Log.d(TAG, "All went well, dismiss locked controller")
|
||||||
router.popCurrentController()
|
router.popCurrentController()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
Log.d(TAG, "Authorization failed")
|
Log.d(TAG, "Authorization failed")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user