Fix bug #6558264 Recent apps launcher is not getting dismissed after launching Google app using long press of Home key

- close Recent Apps before launching the Assistant

Change-Id: I823dc254252fb3c1fde0a3adcfb895e368c7d77e
diff --git a/packages/SystemUI/src/com/android/systemui/SearchPanelView.java b/packages/SystemUI/src/com/android/systemui/SearchPanelView.java
index 90f94fc..a6e4487 100644
--- a/packages/SystemUI/src/com/android/systemui/SearchPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/SearchPanelView.java
@@ -106,6 +106,9 @@
     }
 
     private void startAssistActivity() {
+        // Close Recent Apps if needed
+        mBar.animateCollapse();
+        // Launch Assist
         Intent intent = getAssistIntent();
         try {
             ActivityOptions opts = ActivityOptions.makeCustomAnimation(mContext,