|
|
|
|
@ -2,7 +2,6 @@ package org.koitharu.kotatsu.base.ui
|
|
|
|
|
|
|
|
|
|
import android.content.Intent
|
|
|
|
|
import android.content.res.Configuration
|
|
|
|
|
import android.os.Build
|
|
|
|
|
import android.os.Bundle
|
|
|
|
|
import android.view.KeyEvent
|
|
|
|
|
import android.view.MenuItem
|
|
|
|
|
@ -138,20 +137,6 @@ abstract class BaseActivity<B : ViewBinding> :
|
|
|
|
|
window.statusBarColor = getThemeColor(android.R.attr.statusBarColor)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Suppress("DEPRECATION", "DeprecatedCallableAddReplaceWith")
|
|
|
|
|
@Deprecated("Should not be used")
|
|
|
|
|
override fun onBackPressed() {
|
|
|
|
|
if ( // https://issuetracker.google.com/issues/139738913
|
|
|
|
|
Build.VERSION.SDK_INT == Build.VERSION_CODES.Q &&
|
|
|
|
|
isTaskRoot &&
|
|
|
|
|
supportFragmentManager.backStackEntryCount == 0
|
|
|
|
|
) {
|
|
|
|
|
finishAfterTransition()
|
|
|
|
|
} else {
|
|
|
|
|
super.onBackPressed()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private fun putDataToExtras(intent: Intent?) {
|
|
|
|
|
intent?.putExtra(EXTRA_DATA, intent.data)
|
|
|
|
|
}
|
|
|
|
|
|