package com.demoscene.tv

import android.content.Intent
import android.view.KeyEvent
import androidx.fragment.app.FragmentActivity

open class BaseMenuActivity : FragmentActivity() {
    
    override fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean {
        // Menu button or long press UP opens menu from any screen
        if (keyCode == KeyEvent.KEYCODE_MENU) {
            startActivity(Intent(this, MenuActivity::class.java))
            return true
        }
        return super.onKeyDown(keyCode, event)
    }
}
