Skip to content

Commit

Permalink
fixup! feat: Support for login and registration via a browser custom tab
Browse files Browse the repository at this point in the history
  • Loading branch information
xitij2000 committed Dec 2, 2024
1 parent 8beb850 commit 7b1f928
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/src/main/java/org/openedx/app/AppActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,10 @@ class AppActivity : AppCompatActivity(), InsetHolder, WindowSizeHolder {
if (savedInstanceState == null) {
when {
corePreferencesManager.user == null -> {
val authCode = authCode;

if (viewModel.isLogistrationEnabled && authCode == null) {
addFragment(LogistrationFragment())
val fragment = if (viewModel.isLogistrationEnabled && authCode == null) {
LogistrationFragment()
} else {
addFragment(SignInFragment.newInstance(null, null, authCode = authCode))
SignInFragment.newInstance(null, null, authCode = authCode)
}
addFragment(fragment)
}
Expand Down

0 comments on commit 7b1f928

Please sign in to comment.