From c7ac3a1f4dbdb79171e274661d1521c704f1e063 Mon Sep 17 00:00:00 2001 From: Izabela Orlowska Date: Tue, 27 Mar 2018 14:46:52 +0100 Subject: AAPT2: add flag for forcing visibility level Test: manual Bug: 72735798 Change-Id: I29480e66384dd2da27e17ab454ac1fe8a033ee3e --- tools/aapt2/ResourceParser.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/aapt2/ResourceParser.h') diff --git a/tools/aapt2/ResourceParser.h b/tools/aapt2/ResourceParser.h index fb9dbd0cd0fd..68130c2512d3 100644 --- a/tools/aapt2/ResourceParser.h +++ b/tools/aapt2/ResourceParser.h @@ -45,6 +45,10 @@ struct ResourceParserOptions { * warnings. */ bool error_on_positional_arguments = true; + + // If visibility was forced, we need to use it when creating a new resource and also error if we + // try to parse the , , or tags. + Maybe visibility; }; /* -- cgit v1.2.3-59-g8ed1b