diff --git a/packages/SystemUI/res/anim/search_launch_enter.xml b/packages/SystemUI/res/anim/search_launch_enter.xml new file mode 100644 index 0000000000000..055ea5d795fa5 --- /dev/null +++ b/packages/SystemUI/res/anim/search_launch_enter.xml @@ -0,0 +1,32 @@ + + + + + + + + + diff --git a/packages/SystemUI/res/anim/search_launch_exit.xml b/packages/SystemUI/res/anim/search_launch_exit.xml new file mode 100644 index 0000000000000..b4ed2789930e1 --- /dev/null +++ b/packages/SystemUI/res/anim/search_launch_exit.xml @@ -0,0 +1,23 @@ + + + + diff --git a/packages/SystemUI/src/com/android/systemui/SearchPanelView.java b/packages/SystemUI/src/com/android/systemui/SearchPanelView.java index 478d652e5947c..28283ef418076 100644 --- a/packages/SystemUI/src/com/android/systemui/SearchPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/SearchPanelView.java @@ -107,9 +107,11 @@ public class SearchPanelView extends FrameLayout implements private void startAssistActivity() { Intent intent = getAssistIntent(); - intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); try { - mContext.startActivity(intent); + ActivityOptions opts = ActivityOptions.makeCustomAnimation(mContext, + R.anim.search_launch_enter, R.anim.search_launch_exit); + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + mContext.startActivity(intent, opts.toBundle()); } catch (ActivityNotFoundException e) { Slog.w(TAG, "Activity not found for " + intent.getAction()); }