mirror of
https://github.com/lizongying/my-tv.git
synced 2026-10-26 22:26:29 +08:00
show info
This commit is contained in:
@@ -55,25 +55,9 @@ class MainActivity : FragmentActivity() {
|
||||
gestureDetector = GestureDetector(this, GestureListener())
|
||||
}
|
||||
|
||||
fun switchInfoFragment(tv: TV) {
|
||||
infoFragment.setInfo(tv)
|
||||
|
||||
if (infoFragment.isHidden) {
|
||||
supportFragmentManager.beginTransaction().show(infoFragment).commit()
|
||||
}
|
||||
}
|
||||
|
||||
fun showInfoFragment(tv: TV) {
|
||||
infoFragment.setInfo(tv)
|
||||
supportFragmentManager.beginTransaction()
|
||||
.show(infoFragment)
|
||||
.commit()
|
||||
}
|
||||
|
||||
fun hideInfoFragment() {
|
||||
supportFragmentManager.beginTransaction()
|
||||
.hide(infoFragment)
|
||||
.commit()
|
||||
fun showInfoFragment(tvViewModel: TVViewModel) {
|
||||
infoFragment.setInfo(tvViewModel)
|
||||
infoFragment.show()
|
||||
}
|
||||
|
||||
fun play(tvViewModel: TVViewModel) {
|
||||
|
||||
Reference in New Issue
Block a user