Loading services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionSessionConnection.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -251,7 +251,8 @@ final class VoiceInteractionSessionConnection implements ServiceConnection { && structureEnabled) { && structureEnabled) { mAssistData.clear(); mAssistData.clear(); final int count = activityToken != null ? 1 : topActivities.size(); 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); IBinder topActivity = count == 1 ? activityToken : topActivities.get(i); try { try { MetricsLogger.count(mContext, "assist_with_context", 1); MetricsLogger.count(mContext, "assist_with_context", 1); Loading Loading
services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionSessionConnection.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -251,7 +251,8 @@ final class VoiceInteractionSessionConnection implements ServiceConnection { && structureEnabled) { && structureEnabled) { mAssistData.clear(); mAssistData.clear(); final int count = activityToken != null ? 1 : topActivities.size(); 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); IBinder topActivity = count == 1 ? activityToken : topActivities.get(i); try { try { MetricsLogger.count(mContext, "assist_with_context", 1); MetricsLogger.count(mContext, "assist_with_context", 1); Loading