Assigned
Status Update
Comments
rv...@google.com <rv...@google.com> #2
Thanks for the report. This is interesting. This will need some investigation. We will get back to you when we have an update.
No update yet.
Thanks for the report. This is interesting. This will need some investigation. We will get back to you when we have an update.
Description
Component used: TV
Version used: foundation 1.0.0-alpha10
Devices/Android versions reproduced on:
Chromecast with Google TV
Code:
var activityCount = 0
class MainActivity : ComponentActivity() {
@OptIn(ExperimentalTvMaterial3Api::class)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
activityCount++
setContent {
MyApplicationTheme {
Column(
modifier = Modifier.fillMaxSize(),
) {
Text("Activity Count: $activityCount")
Button(
onLongClick = {
startActivity()
},
onClick = {
startActivity()
}
) {
Text("Android")
}
}
}
}
}
override fun onDestroy() {
super.onDestroy()
activityCount--
}
private fun startActivity() {
startActivity(Intent(this, MainActivity::class.java))
}
}