Update explore fragment

This commit is contained in:
Koitharu
2023-07-13 16:08:09 +03:00
parent 55ca2b8d8d
commit 44a2b6db11
10 changed files with 123 additions and 93 deletions

View File

@@ -72,7 +72,6 @@ class FeedFragment :
addMenuProvider(
FeedMenuProvider(
binding.recyclerView,
(activity as? BottomNavOwner)?.bottomNav,
viewModel,
),
)

View File

@@ -8,12 +8,10 @@ import android.view.View
import androidx.core.view.MenuProvider
import org.koitharu.kotatsu.R
import org.koitharu.kotatsu.core.ui.dialog.CheckBoxAlertDialog
import org.koitharu.kotatsu.settings.SettingsActivity
import org.koitharu.kotatsu.tracker.work.TrackWorker
class FeedMenuProvider(
private val snackbarHost: View,
private val anchorView: View?,
private val viewModel: FeedViewModel,
) : MenuProvider {
@@ -43,12 +41,6 @@ class FeedMenuProvider(
true
}
R.id.action_settings -> {
val intent = SettingsActivity.newTrackerSettingsIntent(context)
context.startActivity(intent)
true
}
else -> false
}
}