OSDN Git Service

Workaround for assist crash with multiwindow
authorAmith Yamasani <yamasani@google.com>
Mon, 9 May 2016 19:46:23 +0000 (12:46 -0700)
committerAmith Yamasani <yamasani@google.com>
Mon, 9 May 2016 19:46:23 +0000 (12:46 -0700)
Temporarily disable multiwindow assist until
Bug: 28348867
is fixed correctly.

Change-Id: Ia9d0fb5d4412e87aada90e8dcffe829b61221c6c

services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionSessionConnection.java

index 27351e4..855a5c4 100644 (file)
@@ -251,7 +251,8 @@ final class VoiceInteractionSessionConnection implements ServiceConnection {
                         && structureEnabled) {
                     mAssistData.clear();
                     final int count = activityToken != null ? 1 : topActivities.size();
-                    for (int i = 0; i < count; i++) {
+                    // Temp workaround for bug: 28348867  Revert after DP3
+                    for (int i = 0; i < count && i < 1; i++) {
                         IBinder topActivity = count == 1 ? activityToken : topActivities.get(i);
                         try {
                             MetricsLogger.count(mContext, "assist_with_context", 1);