summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMady Mellor <madym@google.com>2017-10-24 11:44:16 -0700
committerMady Mellor <madym@google.com>2017-11-02 15:17:58 -0700
commitb367fb754a15fc07126b10a64a4e98cf9ea4b134 (patch)
treeca50daf61f20246424ad747f15765ac6feccb255 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent97a0ae3a49b4e595d8c7ca79a9e8e5d41b9d4252 (diff)
Update shortcuts to match spec
Necessary information for a shortcut is label, icon, intent. This alters how that information is retrieved from a Slice and falls back to using the app icon / title / intent if any of the information is missing from the slice ensuring that there is always an actionable shortcut. Also adds notion of HINT_HIDDEN, allowing apps to exclude parts of a slice from being visible in a template, note when creating a shortcut HINT_HIDDEN is ignored. Test: Manual with SlicesApp, test different varients of having HINT_TITLE and not having HINT_TITLE on an action / icon / label as well as not having an icon / label / or action. Bug: 68378574 Change-Id: I1de9e502204dfb7fd83a7ec7622e8fd464146cfd
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions