Skip to content

Commit

Permalink
Drop unused members of LoginTypesProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkup committed May 9, 2024
1 parent 3fb7053 commit 2f75db0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,11 @@

package at.bitfire.davdroid.ui.setup

import android.content.Intent
import androidx.compose.material3.SnackbarHostState
import androidx.compose.runtime.Composable

interface LoginTypesProvider {

val defaultLoginType: LoginType

fun intentToInitialLoginType(intent: Intent): LoginType

/** Whether the [LoginTypePage] may be non-interactive. This causes it to be skipped in back navigation. */
val maybeNonInteractive: Boolean
get() = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

package at.bitfire.davdroid.ui.setup

import android.content.Intent
import androidx.compose.material3.SnackbarHostState
import androidx.compose.runtime.Composable
import javax.inject.Inject
Expand All @@ -24,14 +23,6 @@ class StandardLoginTypesProvider @Inject constructor() : LoginTypesProvider {
)
}

override val defaultLoginType = UrlLogin

override fun intentToInitialLoginType(intent: Intent) =
if (intent.hasExtra(LoginActivity.EXTRA_LOGIN_FLOW))
NextcloudLogin
else
UrlLogin

@Composable
override fun LoginTypePage(
snackbarHostState: SnackbarHostState,
Expand Down

0 comments on commit 2f75db0

Please sign in to comment.