mirror of
https://github.com/lizongying/my-tv.git
synced 2026-10-26 22:26:29 +08:00
optimize memu hiding
This commit is contained in:
@@ -105,7 +105,9 @@ class MainActivity : FragmentActivity() {
|
||||
}
|
||||
|
||||
private val hideRunnable = Runnable {
|
||||
supportFragmentManager.beginTransaction().hide(mainFragment).commit()
|
||||
if (!mainFragment.isHidden) {
|
||||
supportFragmentManager.beginTransaction().hide(mainFragment).commit()
|
||||
}
|
||||
}
|
||||
|
||||
private fun mainFragmentIsHidden(): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user