mirror of
https://github.com/lizongying/my-tv.git
synced 2026-10-26 22:26:29 +08:00
fix the menu did not appear
This commit is contained in:
@@ -236,8 +236,11 @@ class MainActivity : FragmentActivity() {
|
||||
return true
|
||||
}
|
||||
|
||||
KeyEvent.KEYCODE_ENTER -> {
|
||||
switchMainFragment()
|
||||
}
|
||||
|
||||
KeyEvent.KEYCODE_DPAD_CENTER -> {
|
||||
Log.i(TAG, "KEYCODE_DPAD_CENTER")
|
||||
switchMainFragment()
|
||||
}
|
||||
|
||||
|
||||
@@ -209,8 +209,8 @@ class MainFragment : BrowseSupportFragment() {
|
||||
itemPosition = sharedPref?.getInt("position", 0)!!
|
||||
if (itemPosition >= tvListViewModel.size()) {
|
||||
itemPosition = 0
|
||||
tvListViewModel.setItemPosition(itemPosition)
|
||||
}
|
||||
tvListViewModel.setItemPosition(itemPosition)
|
||||
}
|
||||
|
||||
fun fragmentReady() {
|
||||
|
||||
Reference in New Issue
Block a user