summaryrefslogtreecommitdiff
path: root/tools/aapt/ResourceTable.h
diff options
context:
space:
mode:
author Adam Lesinski <adamlesinski@google.com> 2017-04-17 16:22:03 -0700
committer Adam Lesinski <adamlesinski@google.com> 2017-04-17 16:22:03 -0700
commit99d36ee8a936d5f9d95305183241ed597bace8e8 (patch)
tree62e4d0459ff1ec55fb197165041892c87ecb9149 /tools/aapt/ResourceTable.h
parentec8f35366851fcfea2d8b8e42821dda72bdca344 (diff)
AAPT: Auto-alias application adaptive-icon
When a developer specifies an adaptive application icon, and a non-adaptive round application icon, create an alias from the round icon to the regular icon for v26 APIs and up. We do this because certain devices prefer android:roundIcon over android:icon regardless of the API levels of the drawables set for either. This auto-aliasing behaviour allows an app to prefer the android:roundIcon on API 25 devices, and prefer the adaptive icon on API 26 devices. An app developer can override this behaviour by explicitly setting the android:roundIcon to a drawable that has a v26 qualifier. Bug: 34829129 Test: manual Change-Id: Iaaaa5d8367e4f3f9e9f2e3b51c782d3be6a3bb71
Diffstat (limited to 'tools/aapt/ResourceTable.h')
-rw-r--r--tools/aapt/ResourceTable.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/aapt/ResourceTable.h b/tools/aapt/ResourceTable.h
index aff22d4d1364..b340fc56b793 100644
--- a/tools/aapt/ResourceTable.h
+++ b/tools/aapt/ResourceTable.h
@@ -590,9 +590,10 @@ public:
const String16& comment,
bool appendComment);
+ sp<Package> getPackage(const String16& package);
+
private:
void writePublicDefinitions(const String16& package, FILE* fp, bool pub);
- sp<Package> getPackage(const String16& package);
sp<Type> getType(const String16& package,
const String16& type,
const SourcePos& pos,