diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/bookmarks/ui/BookmarksFragment.kt b/app/src/main/kotlin/org/koitharu/kotatsu/bookmarks/ui/BookmarksFragment.kt index e14c5eceb..a37e65f05 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/bookmarks/ui/BookmarksFragment.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/bookmarks/ui/BookmarksFragment.kt @@ -112,7 +112,7 @@ class BookmarksFragment : .bookmark(item) .incognito(true) .build() - startActivity(intent, scaleUpActivityOptionsOf(view)) + startActivity(intent) Toast.makeText(view.context, R.string.incognito_mode, Toast.LENGTH_SHORT).show() } } diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/bookmarks/ui/sheet/BookmarksSheet.kt b/app/src/main/kotlin/org/koitharu/kotatsu/bookmarks/ui/sheet/BookmarksSheet.kt index 2f600a427..e11c0103b 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/bookmarks/ui/sheet/BookmarksSheet.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/bookmarks/ui/sheet/BookmarksSheet.kt @@ -22,7 +22,6 @@ import org.koitharu.kotatsu.core.util.RecyclerViewScrollCallback import org.koitharu.kotatsu.core.util.ext.observe import org.koitharu.kotatsu.core.util.ext.observeEvent import org.koitharu.kotatsu.core.util.ext.plus -import org.koitharu.kotatsu.core.util.ext.scaleUpActivityOptionsOf import org.koitharu.kotatsu.core.util.ext.showDistinct import org.koitharu.kotatsu.core.util.ext.withArgs import org.koitharu.kotatsu.databinding.SheetPagesBinding @@ -103,7 +102,7 @@ class BookmarksSheet : .bookmark(item) .incognito(true) .build() - startActivity(intent, scaleUpActivityOptionsOf(view)) + startActivity(intent) } dismiss() } diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/ChaptersFragment.kt b/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/ChaptersFragment.kt index dc9998095..c8c3f59a4 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/ChaptersFragment.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/ChaptersFragment.kt @@ -87,7 +87,6 @@ class ChaptersFragment : .manga(viewModel.manga.value ?: return) .state(ReaderState(item.chapter.id, 0, 0)) .build(), - scaleUpActivityOptionsOf(view), ) } diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/DetailsFragment.kt b/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/DetailsFragment.kt index ff9bdc8ed..056675880 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/DetailsFragment.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/details/ui/DetailsFragment.kt @@ -119,7 +119,6 @@ class DetailsFragment : override fun onItemClick(item: Bookmark, view: View) { startActivity( ReaderActivity.IntentBuilder(view.context).bookmark(item).incognito(true).build(), - scaleUpActivityOptionsOf(view), ) Toast.makeText(view.context, R.string.incognito_mode, Toast.LENGTH_SHORT).show() } @@ -233,7 +232,7 @@ class DetailsFragment : coil, viewLifecycleOwner, StaticItemSizeResolver(resources.getDimensionPixelSize(R.dimen.smaller_grid_width)), ) { item, view -> - startActivity(DetailsActivity.newIntent(view.context, item), scaleUpActivityOptionsOf(view)) + startActivity(DetailsActivity.newIntent(view.context, item)) }, ).also { rv.adapter = it } adapter.items = related diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/explore/ui/ExploreFragment.kt b/app/src/main/kotlin/org/koitharu/kotatsu/explore/ui/ExploreFragment.kt index a9afd35da..144d9b490 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/explore/ui/ExploreFragment.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/explore/ui/ExploreFragment.kt @@ -69,7 +69,7 @@ class ExploreFragment : override fun onViewBindingCreated(binding: FragmentExploreBinding, savedInstanceState: Bundle?) { super.onViewBindingCreated(binding, savedInstanceState) exploreAdapter = ExploreAdapter(coil, viewLifecycleOwner, this, this, this) { manga, view -> - startActivity(DetailsActivity.newIntent(view.context, manga), scaleUpActivityOptionsOf(view)) + startActivity(DetailsActivity.newIntent(view.context, manga)) } with(binding.recyclerView) { adapter = exploreAdapter diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/MangaListFragment.kt b/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/MangaListFragment.kt index 733e9a15e..cec2d1b95 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/MangaListFragment.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/MangaListFragment.kt @@ -152,7 +152,7 @@ abstract class MangaListFragment : override fun onReadClick(manga: Manga, view: View) { if (selectionController?.onItemClick(manga.id) != true) { val intent = IntentBuilder(view.context).manga(manga).build() - startActivity(intent, scaleUpActivityOptionsOf(view)) + startActivity(intent) } } diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/preview/PreviewFragment.kt b/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/preview/PreviewFragment.kt index 86f2f39c0..2849030df 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/preview/PreviewFragment.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/preview/PreviewFragment.kt @@ -69,7 +69,6 @@ class PreviewFragment : BaseFragment(), View.OnClickList R.id.button_close -> closeSelf() R.id.button_open -> startActivity( DetailsActivity.newIntent(v.context, manga), - scaleUpActivityOptionsOf(requireView()), ) R.id.textView_author -> startActivity( diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/thumbnails/PagesThumbnailsSheet.kt b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/thumbnails/PagesThumbnailsSheet.kt index f0161892a..2a555539f 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/thumbnails/PagesThumbnailsSheet.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/reader/ui/thumbnails/PagesThumbnailsSheet.kt @@ -102,7 +102,7 @@ class PagesThumbnailsSheet : } else { val state = ReaderState(item.page.chapterId, item.page.index, 0) val intent = IntentBuilder(view.context).manga(viewModel.manga).state(state).build() - startActivity(intent, scaleUpActivityOptionsOf(view)) + startActivity(intent) } dismiss() } diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/search/ui/multi/MultiSearchActivity.kt b/app/src/main/kotlin/org/koitharu/kotatsu/search/ui/multi/MultiSearchActivity.kt index 9e69d5df6..8d2514df3 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/search/ui/multi/MultiSearchActivity.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/search/ui/multi/MultiSearchActivity.kt @@ -118,7 +118,7 @@ class MultiSearchActivity : override fun onReadClick(manga: Manga, view: View) { if (!selectionController.onItemClick(manga.id)) { val intent = IntentBuilder(this).manga(manga).build() - startActivity(intent, scaleUpActivityOptionsOf(view)) + startActivity(intent) } }