Remove custom activity animation
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
@@ -87,7 +87,6 @@ class ChaptersFragment :
|
||||
.manga(viewModel.manga.value ?: return)
|
||||
.state(ReaderState(item.chapter.id, 0, 0))
|
||||
.build(),
|
||||
scaleUpActivityOptionsOf(view),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -69,7 +69,6 @@ class PreviewFragment : BaseFragment<FragmentPreviewBinding>(), View.OnClickList
|
||||
R.id.button_close -> closeSelf()
|
||||
R.id.button_open -> startActivity(
|
||||
DetailsActivity.newIntent(v.context, manga),
|
||||
scaleUpActivityOptionsOf(requireView()),
|
||||
)
|
||||
|
||||
R.id.textView_author -> startActivity(
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user