mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 20:06:51 +03:00
Cleanup
This commit is contained in:
parent
29d25c377b
commit
a80f1538c7
3 changed files with 1 additions and 9 deletions
|
@ -18,7 +18,6 @@ package im.vector.app.core.platform
|
|||
|
||||
import android.app.Activity
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.res.Configuration
|
||||
import android.os.Bundle
|
||||
import android.os.Parcelable
|
||||
|
@ -206,7 +205,7 @@ abstract class VectorBaseActivity : AppCompatActivity(), HasScreenInjector {
|
|||
})
|
||||
pinLocker.getLiveState().observeNotNull(this) {
|
||||
if (this@VectorBaseActivity !is UnlockedActivity && it == PinLocker.State.LOCKED) {
|
||||
navigator.openPinCode(this, PinMode.AUTH, pinStartForActivityResult)
|
||||
navigator.openPinCode(this, pinStartForActivityResult, PinMode.AUTH)
|
||||
}
|
||||
}
|
||||
sessionListener = vectorComponent.sessionListener()
|
||||
|
|
|
@ -310,11 +310,6 @@ class DefaultNavigator @Inject constructor(
|
|||
activityResultLauncher.launch(intent)
|
||||
}
|
||||
|
||||
override fun openPinCode(activity: Activity, pinMode: PinMode, activityResultLauncher: ActivityResultLauncher<Intent>) {
|
||||
val intent = PinActivity.newIntent(activity, PinArgs(pinMode))
|
||||
activityResultLauncher.launch(intent)
|
||||
}
|
||||
|
||||
override fun openMediaViewer(activity: Activity,
|
||||
roomId: String,
|
||||
mediaData: AttachmentData,
|
||||
|
|
|
@ -87,8 +87,6 @@ interface Navigator {
|
|||
activityResultLauncher: ActivityResultLauncher<Intent>,
|
||||
pinMode: PinMode)
|
||||
|
||||
fun openPinCode(activity: Activity, pinMode: PinMode, activityResultLauncher: ActivityResultLauncher<Intent>)
|
||||
|
||||
fun openTerms(context: Context,
|
||||
activityResultLauncher: ActivityResultLauncher<Intent>,
|
||||
serviceType: TermsService.ServiceType,
|
||||
|
|
Loading…
Reference in a new issue