Merge "Fix 6578735: don't crash system ui when there's no search activity" into jb-dev

This commit is contained in:
Jim Miller
2012-05-30 10:53:15 -07:00
committed by Android (Google) Code Review

View File

@@ -110,6 +110,7 @@ public class SearchPanelView extends FrameLayout implements
mBar.animateCollapse(CommandQueue.FLAG_EXCLUDE_SEARCH_PANEL);
// Launch Assist
Intent intent = getAssistIntent();
if (intent == null) return;
try {
ActivityOptions opts = ActivityOptions.makeCustomAnimation(mContext,
R.anim.search_launch_enter, R.anim.search_launch_exit);