Fix TaskView over lockscreen
When launching the TaskView with embedded activity over lockscreen, the ControlsActivity is being issued onPause()/onResume() calls. Previously, these would trigger show and hide animations to run, which means it would also immediately hide the TaskView. Move these to onStart()/onStop() Fixes: 226117798 Test: ControlsMockApp with test activities Change-Id: If888859ed733a4b683d164d96d0893ddb1e8a106
This commit is contained in:
@@ -77,8 +77,8 @@ class ControlsActivity @Inject constructor(
|
||||
initBroadcastReceiver()
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
override fun onStart() {
|
||||
super.onStart()
|
||||
|
||||
parent = requireViewById<ViewGroup>(R.id.global_actions_controls)
|
||||
parent.alpha = 0f
|
||||
@@ -91,8 +91,8 @@ class ControlsActivity @Inject constructor(
|
||||
finish()
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
super.onPause()
|
||||
override fun onStop() {
|
||||
super.onStop()
|
||||
|
||||
uiController.hide()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user