summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorFabian Kozynski <kozynski@google.com>2020-05-26 15:13:52 -0400
committerFabian Kozynski <kozynski@google.com>2020-05-27 10:12:35 -0400
commit137951c7b4496ead228fcd193f879098e37de4d2 (patch)
treed7bf3ae5e1dc41b82039944ec91d2e152cdf4c0f /tools/aapt2/java/JavaClassGenerator_test.cpp
parent12416fba4a9f98d697a6dfb27a7da6bc58dc570d (diff)
Gate controls controllers with system feature flag
Instantiation of the Controls Controllers is now flagged behind PackageManager.FEATURE_CONTROLS. This is done in the following way: * The class ControlsComponent has accessors to the top level controllers (as Optional), but they will be Optional.empty() if the feature is disabled. * GlobalActionsDialog injects a ControlsComponent and works with the optionals. * ControlsRequestReceiver checks this flag and returns immediately if it's false. In this way, the whole controls subsystem is only instantiated if the feature is supported. Bug: 157244528 Test: manual (enable and disable the flag). Test: atest ControlsComponentTest ControlsRequestReceiverTest Change-Id: I05419bb28289afbf5813791cfc72c54a123f4c87
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions