diff options
author | 2025-03-10 14:51:37 +0000 | |
---|---|---|
committer | 2025-03-10 08:04:45 -0700 | |
commit | 9d34155b9a9c791933d76d2f2b00061d4a5edd18 (patch) | |
tree | 2b037d983177c4e1669a9971833e5604c2ac49d0 /photopicker | |
parent | 5e6a7ccd069497df4f3dfe2bfd6041f689cc28fc (diff) |
Change to not show face icon for history suggestions
Screenshot:
Before: go/ss/8EeYtQkanNPDEWL.png
After: go/ss/4pqpkWfEzGmXpE4.png
Bug: 401184113
Test: Manual
Flag: EXEMPT Bug fix
Change-Id: Ia21c09daf08920f746843570d9bd8076ecf48c84
Diffstat (limited to 'photopicker')
-rw-r--r-- | photopicker/src/com/android/photopicker/features/search/Search.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/photopicker/src/com/android/photopicker/features/search/Search.kt b/photopicker/src/com/android/photopicker/features/search/Search.kt index 1e6cb0a6c..f7c71d9ff 100644 --- a/photopicker/src/com/android/photopicker/features/search/Search.kt +++ b/photopicker/src/com/android/photopicker/features/search/Search.kt @@ -789,7 +789,8 @@ fun SuggestionItem(suggestion: SearchSuggestion) { } val text = suggestion.displayText ?: "" Text(text = text, modifier = Modifier.padding(start = MEASUREMENT_LARGE_PADDING).weight(1f)) - if (suggestion.type != SearchSuggestionType.FACE && suggestion.icon != null) { + if (suggestion.type != SearchSuggestionType.FACE + && suggestion.type != SearchSuggestionType.HISTORY && suggestion.icon != null) { ShowSuggestionIcon(suggestion, Modifier.size(MEASUREMENT_OTHER_ICON).clip(CircleShape)) } } |