|
@@ -70,6 +70,7 @@ import eu.kanade.tachiyomi.ui.reader.viewer.ReaderProgressIndicator
|
|
|
import eu.kanade.tachiyomi.ui.webview.WebViewActivity
|
|
|
import eu.kanade.tachiyomi.util.system.hasDisplayCutout
|
|
|
import eu.kanade.tachiyomi.util.system.isNightMode
|
|
|
+import eu.kanade.tachiyomi.util.system.overridePendingTransitionCompat
|
|
|
import eu.kanade.tachiyomi.util.system.toShareIntent
|
|
|
import eu.kanade.tachiyomi.util.system.toast
|
|
|
import eu.kanade.tachiyomi.util.view.setComposeContent
|
|
@@ -138,7 +139,7 @@ class ReaderActivity : BaseActivity() {
|
|
|
*/
|
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
|
registerSecureActivity(this)
|
|
|
- overridePendingTransition(R.anim.shared_axis_x_push_enter, R.anim.shared_axis_x_push_exit)
|
|
|
+ overridePendingTransitionCompat(R.anim.shared_axis_x_push_enter, R.anim.shared_axis_x_push_exit)
|
|
|
|
|
|
super.onCreate(savedInstanceState)
|
|
|
|
|
@@ -269,7 +270,7 @@ class ReaderActivity : BaseActivity() {
|
|
|
override fun finish() {
|
|
|
viewModel.onActivityFinish()
|
|
|
super.finish()
|
|
|
- overridePendingTransition(R.anim.shared_axis_x_pop_enter, R.anim.shared_axis_x_pop_exit)
|
|
|
+ overridePendingTransitionCompat(R.anim.shared_axis_x_pop_enter, R.anim.shared_axis_x_pop_exit)
|
|
|
}
|
|
|
|
|
|
override fun onKeyUp(keyCode: Int, event: KeyEvent?): Boolean {
|