summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAbodunrinwa Toki <toki@google.com>2017-02-02 11:07:05 +0000
committerAbodunrinwa Toki <toki@google.com>2017-02-02 20:35:51 +0000
commitfafdb7372fe0da277a32b47cff825dbb244e4af0 (patch)
tree6eb6d666af8c96b06338f096ca6feea3628596ae /tools/aapt2/java/JavaClassGenerator_test.cpp
parent580f32d7b01cd94487b6473c47854cf01a03f53e (diff)
Fix TextClassifier.getTextClassificationResult()
Gracefully handles situations where a default app cannot be found to handle the intent. 1. If we can not find any app to handle the intent, do not include an "assist" menu item entry to fire the intent. Also, do not linkify the entry. 2. If we do not have a default app to handle the intent, show a generic title for apps that will handle the intent and do not include an icon. In the ideal case where we find a default app to include the intent, show the app's (preferably activity's) title and icon. Test: Manually tested. There's an AI to write more automated tests. Bug: 34777322 Bug: 34927631 Change-Id: Ia94efbbdda3da8f181fac9228cd2d3a76cb727d3
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions