Skip to content

Commit

Permalink
Adapt OpenSourceFragment order
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc2822 committed Oct 17, 2023
1 parent 2c08b1d commit 5875bd4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import at.bitfire.davdroid.ui.UiUtils
import at.bitfire.davdroid.ui.intro.OpenSourceFragment.Model.Companion.SETTING_NEXT_DONATION_POPUP
import dagger.hilt.android.AndroidEntryPoint
import dagger.hilt.android.lifecycle.HiltViewModel
import dagger.hilt.android.qualifiers.ApplicationContext
import javax.inject.Inject

@AndroidEntryPoint
Expand All @@ -48,7 +47,6 @@ class OpenSourceFragment: Fragment() {

@HiltViewModel
class Model @Inject constructor(
@ApplicationContext val context: Context,
val settings: SettingsManager
): ViewModel() {

Expand Down Expand Up @@ -76,7 +74,7 @@ class OpenSourceFragment: Fragment() {

override fun getOrder(context: Context) =
if (System.currentTimeMillis() > (settingsManager.getLongOrNull(SETTING_NEXT_DONATION_POPUP) ?: 0))
100
500
else
0

Expand Down

0 comments on commit 5875bd4

Please sign in to comment.