mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 01:39:19 +01:00
Fix method conflicts
This commit is contained in:
parent
e1a3ee1b81
commit
1977e21363
@ -11,15 +11,15 @@ abstract class BaseActivity : AppCompatActivity(), ActivityMixin {
|
||||
|
||||
override fun getActivity() = this
|
||||
|
||||
var isResumed = false
|
||||
var resumed = false
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
isResumed = true
|
||||
resumed = true
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
isResumed = false
|
||||
resumed = false
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
|
@ -25,15 +25,15 @@ abstract class BaseRxActivity<P : BasePresenter<*>> : NucleusAppCompatActivity<P
|
||||
|
||||
override fun getActivity() = this
|
||||
|
||||
var isResumed = false
|
||||
var resumed = false
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
isResumed = true
|
||||
resumed = true
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
isResumed = false
|
||||
resumed = false
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ class MainActivity : BaseActivity() {
|
||||
override fun onBackPressed() {
|
||||
val fragment = supportFragmentManager.findFragmentById(R.id.frame_container)
|
||||
if (fragment != null && fragment.tag.toInt() != startScreenId) {
|
||||
if (isResumed) {
|
||||
if (resumed) {
|
||||
setSelectedDrawerItem(startScreenId)
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user