Call setupAssistActions when window is visible
Bug:27891776
Change-Id: I12f6de27b9734e66145de6d2860375a02148eedd
diff --git a/src/com/android/phone/EmergencyActionGroup.java b/src/com/android/phone/EmergencyActionGroup.java
index 039dd82..524462e 100644
--- a/src/com/android/phone/EmergencyActionGroup.java
+++ b/src/com/android/phone/EmergencyActionGroup.java
@@ -76,7 +76,6 @@
@Override
protected void onFinishInflate() {
super.onFinishInflate();
- setupAssistActions();
mSelectedContainer = (ViewGroup) findViewById(R.id.selected_container);
mSelectedContainer.setOnClickListener(this);
@@ -85,6 +84,14 @@
mLaunchHint = findViewById(R.id.launch_hint);
}
+ @Override
+ protected void onWindowVisibilityChanged(int visibility) {
+ super.onWindowVisibilityChanged(visibility);
+ if (visibility == View.VISIBLE) {
+ setupAssistActions();
+ }
+ }
+
/**
* Called by the activity before a touch event is dispatched to the view hierarchy.
*/