Skip to content

Commit

Permalink
Upgrade external libs
Browse files Browse the repository at this point in the history
  • Loading branch information
anod committed Sep 17, 2021
1 parent 25c77df commit 26c2bd9
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import com.anod.appwatcher.details.DetailsFragment
import com.anod.appwatcher.watchlist.AppDetailsRouter
import info.anodsplace.framework.R
import info.anodsplace.framework.app.CustomThemeColors
import info.anodsplace.framework.app.FragmentFactory
import info.anodsplace.framework.app.FragmentContainerFactory
import info.anodsplace.framework.app.FragmentToolbarActivity

@Keep
Expand Down Expand Up @@ -52,7 +52,7 @@ class InstalledActivity : FragmentToolbarActivity(), AppDetailsRouter {
}

companion object {
fun intent(context: Context, factory: FragmentFactory, themeRes: Int, themeColors: CustomThemeColors) =
fun intent(context: Context, factory: FragmentContainerFactory, themeRes: Int, themeColors: CustomThemeColors) =
intent(
context = context,
factory = factory,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import com.anod.appwatcher.watchlist.*
import info.anodsplace.applog.AppLog
import info.anodsplace.framework.app.CustomThemeColors
import info.anodsplace.framework.app.DialogSingleChoice
import info.anodsplace.framework.app.FragmentFactory
import info.anodsplace.framework.app.FragmentContainerFactory
import info.anodsplace.framework.app.ToolbarActivity
import info.anodsplace.framework.content.startActivitySafely
import kotlinx.coroutines.flow.collect
Expand Down Expand Up @@ -286,7 +286,7 @@ class InstalledFragment : WatchListFragment(), ActionMode.Callback {
class Factory(
private val sortId: Int,
private val showImportAction: Boolean
) : FragmentFactory("recently-installed-$sortId-$showImportAction") {
) : FragmentContainerFactory("recently-installed-$sortId-$showImportAction") {

override fun create(): Fragment = InstalledFragment().also {
it.arguments = Bundle().apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.anod.appwatcher.R
import com.anod.appwatcher.database.entities.Tag
import com.anod.appwatcher.databinding.ListItemEmptyBinding
import com.anod.appwatcher.watchlist.*
import info.anodsplace.framework.app.FragmentFactory
import info.anodsplace.framework.app.FragmentContainerFactory
import kotlinx.coroutines.flow.MutableSharedFlow

/**
Expand Down Expand Up @@ -59,7 +59,7 @@ class AppsTagListFragment : WatchListFragment() {
private val sortId: Int,
private val tag: Tag?,
val title: String
) : FragmentFactory("apps-tags-$filterId-$sortId-${tag?.hashCode()}") {
) : FragmentContainerFactory("apps-tags-$filterId-$sortId-${tag?.hashCode()}") {

override fun create(): Fragment = AppsTagListFragment().also {
it.arguments = Bundle().apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import com.anod.appwatcher.databinding.ActivityTagsEditorBinding
import com.anod.appwatcher.model.AppInfo
import com.anod.appwatcher.utils.Theme
import info.anodsplace.framework.app.CustomThemeColors
import info.anodsplace.framework.app.FragmentFactory
import info.anodsplace.framework.app.FragmentContainerFactory
import info.anodsplace.framework.app.FragmentToolbarActivity
import info.anodsplace.graphics.DrawableTint
import kotlinx.coroutines.flow.collectLatest
Expand Down Expand Up @@ -152,7 +152,7 @@ class TagsListFragment : Fragment(), View.OnClickListener {
companion object {
const val EXTRA_APP = "app"

class Factory : FragmentFactory("tags_list") {
class Factory : FragmentContainerFactory("tags_list") {
override fun create() = TagsListFragment()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import com.anod.appwatcher.utils.EventFlow
import com.anod.appwatcher.utils.Theme
import info.anodsplace.applog.AppLog
import info.anodsplace.framework.app.CustomThemeColors
import info.anodsplace.framework.app.FragmentFactory
import info.anodsplace.framework.app.FragmentContainerFactory
import kotlinx.coroutines.flow.collectLatest

sealed class ListState
Expand Down Expand Up @@ -260,7 +260,7 @@ abstract class WatchListActivity : DrawerActivity(), TextView.OnEditorActionList
}
}

class Adapter(private val factories: List<FragmentFactory>, activity: WatchListActivity) : FragmentStateAdapter(activity) {
class Adapter(private val factories: List<FragmentContainerFactory>, activity: WatchListActivity) : FragmentStateAdapter(activity) {

override fun getItemCount(): Int = factories.size

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import com.anod.appwatcher.tags.AppsTagSelectDialog
import com.anod.appwatcher.utils.EventFlow
import info.anodsplace.applog.AppLog
import info.anodsplace.framework.app.CustomThemeActivity
import info.anodsplace.framework.app.FragmentFactory
import info.anodsplace.framework.app.FragmentContainerFactory
import info.anodsplace.framework.content.startActivitySafely
import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.collect
Expand Down Expand Up @@ -294,7 +294,7 @@ open class WatchListFragment : Fragment(), SwipeRefreshLayout.OnRefreshListener
private val filterId: Int,
private val sortId: Int,
private val tag: Tag?
) : FragmentFactory("watch-list-$filterId-$sortId-${tag?.hashCode()}") {
) : FragmentContainerFactory("watch-list-$filterId-$sortId-${tag?.hashCode()}") {

override fun create(): Fragment = WatchListFragment().also {
it.arguments = Bundle().apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.anod.appwatcher.search.ResultsAdapterList
import com.anod.appwatcher.tags.TagSnackbar
import com.anod.appwatcher.utils.EventFlow
import info.anodsplace.framework.app.CustomThemeColors
import info.anodsplace.framework.app.FragmentFactory
import info.anodsplace.framework.app.FragmentContainerFactory
import info.anodsplace.framework.app.FragmentToolbarActivity
import info.anodsplace.framework.view.Keyboard
import kotlinx.coroutines.Job
Expand Down Expand Up @@ -188,7 +188,7 @@ class WishListFragment : Fragment() {
const val EXTRA_ACCOUNT = "extra_account"
const val EXTRA_AUTH_TOKEN = "extra_auth_token"

private class Factory : FragmentFactory("wishlist") {
private class Factory : FragmentContainerFactory("wishlist") {
override fun create() = WishListFragment()
}

Expand Down

0 comments on commit 26c2bd9

Please sign in to comment.