summaryrefslogtreecommitdiff
path: root/libs/utils/BackupData.cpp
diff options
context:
space:
mode:
author Bjorn Bringert <bringert@android.com> 2009-07-14 10:27:07 +0100
committer Bjorn Bringert <bringert@android.com> 2009-07-14 13:52:01 +0100
commitc1d82e68eb4aae1b575e82b08e71a87670cc1532 (patch)
treee9af68d63b218d62c1bc52202dabf9457fc3bfd6 /libs/utils/BackupData.cpp
parent3a27b29e41777e58fbcdca440a00676915ebea4f (diff)
Use activity icon when search suggestion icon is missing
New left-hand side icon fallback logic in search dialog: 1. If the search dialog gets no icon column, it shows no icon (like before). This would handle the case of in-app search where the provider does not include icons. 2. If the icon column is empty, or there is an error converting the icon id or URI to a drawable, the search dialog identifies the suggestion source by looking at the SUGGEST_COLUMN_INTENT_COMPONENT_NAME. 3. If SUGGEST_COLUMN_INTENT_COMPONENT_NAME is empty or not set, the current searchable activity is considered the suggestion source. 4. Try to get the activity icon of the suggestion source. 5. Fall back to the application icon of the suggestion source if there is no activity icon. 6. Fall back to some generic icon if there is no application icon. Fixes http://b/issue?id=1905757
Diffstat (limited to 'libs/utils/BackupData.cpp')
0 files changed, 0 insertions, 0 deletions