Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-client-android
Commits
bc3afd89
Commit
bc3afd89
authored
Oct 20, 2021
by
Amirhossein Naghshzan
Browse files
TVAccountWizard: handle onBackPressed
Change-Id: I4f03aa7df9e0f528e1c4c87101e9f4451f24ab3a
parent
420f8687
Changes
1
Hide whitespace changes
Inline
Side-by-side
ring-android/app/src/main/java/cx/ring/tv/account/TVAccountWizard.kt
View file @
bc3afd89
...
...
@@ -89,8 +89,12 @@ class TVAccountWizard : BaseActivity<AccountWizardPresenter>(), AccountWizardVie
override
fun
goToHomeCreation
()
{}
override
fun
goToSipCreation
()
{}
override
fun
onBackPressed
()
{
val
fragment
=
GuidedStepSupportFragment
.
getCurrentGuidedStepSupportFragment
(
supportFragmentManager
)
if
(
fragment
is
TVProfileCreationFragment
)
finish
()
else
super
.
onBackPressed
()
when
(
GuidedStepSupportFragment
.
getCurrentGuidedStepSupportFragment
(
supportFragmentManager
))
{
is
TVProfileCreationFragment
->
finish
()
is
TVHomeAccountCreationFragment
->
finishAffinity
()
is
TVJamiAccountCreationFragment
->
supportFragmentManager
.
popBackStack
()
else
->
super
.
onBackPressed
()
}
}
override
fun
goToProfileCreation
(
accountCreationModel
:
AccountCreationModel
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment