Remove custom activity animation

pull/450/head
Koitharu 3 years ago
parent 0788f5f05e
commit 03cb458d92
Signed by: Koitharu
GPG Key ID: 676DEE768C17A9D7

@ -112,7 +112,7 @@ class BookmarksFragment :
.bookmark(item) .bookmark(item)
.incognito(true) .incognito(true)
.build() .build()
startActivity(intent, scaleUpActivityOptionsOf(view)) startActivity(intent)
Toast.makeText(view.context, R.string.incognito_mode, Toast.LENGTH_SHORT).show() Toast.makeText(view.context, R.string.incognito_mode, Toast.LENGTH_SHORT).show()
} }
} }

@ -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.observe
import org.koitharu.kotatsu.core.util.ext.observeEvent import org.koitharu.kotatsu.core.util.ext.observeEvent
import org.koitharu.kotatsu.core.util.ext.plus 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.showDistinct
import org.koitharu.kotatsu.core.util.ext.withArgs import org.koitharu.kotatsu.core.util.ext.withArgs
import org.koitharu.kotatsu.databinding.SheetPagesBinding import org.koitharu.kotatsu.databinding.SheetPagesBinding
@ -103,7 +102,7 @@ class BookmarksSheet :
.bookmark(item) .bookmark(item)
.incognito(true) .incognito(true)
.build() .build()
startActivity(intent, scaleUpActivityOptionsOf(view)) startActivity(intent)
} }
dismiss() dismiss()
} }

@ -87,7 +87,6 @@ class ChaptersFragment :
.manga(viewModel.manga.value ?: return) .manga(viewModel.manga.value ?: return)
.state(ReaderState(item.chapter.id, 0, 0)) .state(ReaderState(item.chapter.id, 0, 0))
.build(), .build(),
scaleUpActivityOptionsOf(view),
) )
} }

@ -119,7 +119,6 @@ class DetailsFragment :
override fun onItemClick(item: Bookmark, view: View) { override fun onItemClick(item: Bookmark, view: View) {
startActivity( startActivity(
ReaderActivity.IntentBuilder(view.context).bookmark(item).incognito(true).build(), ReaderActivity.IntentBuilder(view.context).bookmark(item).incognito(true).build(),
scaleUpActivityOptionsOf(view),
) )
Toast.makeText(view.context, R.string.incognito_mode, Toast.LENGTH_SHORT).show() Toast.makeText(view.context, R.string.incognito_mode, Toast.LENGTH_SHORT).show()
} }
@ -233,7 +232,7 @@ class DetailsFragment :
coil, viewLifecycleOwner, coil, viewLifecycleOwner,
StaticItemSizeResolver(resources.getDimensionPixelSize(R.dimen.smaller_grid_width)), StaticItemSizeResolver(resources.getDimensionPixelSize(R.dimen.smaller_grid_width)),
) { item, view -> ) { item, view ->
startActivity(DetailsActivity.newIntent(view.context, item), scaleUpActivityOptionsOf(view)) startActivity(DetailsActivity.newIntent(view.context, item))
}, },
).also { rv.adapter = it } ).also { rv.adapter = it }
adapter.items = related adapter.items = related

@ -69,7 +69,7 @@ class ExploreFragment :
override fun onViewBindingCreated(binding: FragmentExploreBinding, savedInstanceState: Bundle?) { override fun onViewBindingCreated(binding: FragmentExploreBinding, savedInstanceState: Bundle?) {
super.onViewBindingCreated(binding, savedInstanceState) super.onViewBindingCreated(binding, savedInstanceState)
exploreAdapter = ExploreAdapter(coil, viewLifecycleOwner, this, this, this) { manga, view -> 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) { with(binding.recyclerView) {
adapter = exploreAdapter adapter = exploreAdapter

@ -152,7 +152,7 @@ abstract class MangaListFragment :
override fun onReadClick(manga: Manga, view: View) { override fun onReadClick(manga: Manga, view: View) {
if (selectionController?.onItemClick(manga.id) != true) { if (selectionController?.onItemClick(manga.id) != true) {
val intent = IntentBuilder(view.context).manga(manga).build() val intent = IntentBuilder(view.context).manga(manga).build()
startActivity(intent, scaleUpActivityOptionsOf(view)) startActivity(intent)
} }
} }

@ -69,7 +69,6 @@ class PreviewFragment : BaseFragment<FragmentPreviewBinding>(), View.OnClickList
R.id.button_close -> closeSelf() R.id.button_close -> closeSelf()
R.id.button_open -> startActivity( R.id.button_open -> startActivity(
DetailsActivity.newIntent(v.context, manga), DetailsActivity.newIntent(v.context, manga),
scaleUpActivityOptionsOf(requireView()),
) )
R.id.textView_author -> startActivity( R.id.textView_author -> startActivity(

@ -102,7 +102,7 @@ class PagesThumbnailsSheet :
} else { } else {
val state = ReaderState(item.page.chapterId, item.page.index, 0) val state = ReaderState(item.page.chapterId, item.page.index, 0)
val intent = IntentBuilder(view.context).manga(viewModel.manga).state(state).build() val intent = IntentBuilder(view.context).manga(viewModel.manga).state(state).build()
startActivity(intent, scaleUpActivityOptionsOf(view)) startActivity(intent)
} }
dismiss() dismiss()
} }

@ -118,7 +118,7 @@ class MultiSearchActivity :
override fun onReadClick(manga: Manga, view: View) { override fun onReadClick(manga: Manga, view: View) {
if (!selectionController.onItemClick(manga.id)) { if (!selectionController.onItemClick(manga.id)) {
val intent = IntentBuilder(this).manga(manga).build() val intent = IntentBuilder(this).manga(manga).build()
startActivity(intent, scaleUpActivityOptionsOf(view)) startActivity(intent)
} }
} }

Loading…
Cancel
Save