Skip to content

Commit 850dd69

Browse files
XSJoJoAndroid (Google) Code Review
authored andcommitted
Merge "Don't use screenshot if structure is disabled (1/2)" into mnc-dev
2 parents b3c93c5 + 1dfa7c6 commit 850dd69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public boolean showLocked(Bundle args, int flags, int disabledContext,
214214
disabledContext |= getUserDisabledShowContextLocked();
215215
boolean structureEnabled = isAssistDataAllowed
216216
&& (disabledContext&VoiceInteractionSession.SHOW_WITH_ASSIST) == 0;
217-
boolean screenshotEnabled = isAssistDataAllowed
217+
boolean screenshotEnabled = isAssistDataAllowed && structureEnabled
218218
&& (disabledContext&VoiceInteractionSession.SHOW_WITH_SCREENSHOT) == 0;
219219
mShowArgs = args;
220220
mShowFlags = flags;

0 commit comments

Comments
 (0)