diff options
author | Yogisha Dixit <ydixit@google.com> | 2021-03-03 20:53:45 +0000 |
---|---|---|
committer | Yogisha Dixit <ydixit@google.com> | 2021-03-03 20:53:45 +0000 |
commit | cb4c7c1286a010814797d1f2c1350792ef309d6a (patch) | |
tree | 7975c01aa8558ce38772afb7af3e0c2b3f8fbefb /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | cdef99ec1350f9a3af53c387bfd856a11ee74b15 (diff) |
Fix flag value for configuration_optional widget feature.
The flag value should be 4 and not 3 so that we can use bitwise
operations to determine the existence of a flag.
For example, we want to use the following to determine if a widget is
reconfigurable:
(providerInfo.widgetFeatures & WIDGET_FEATURE_RECONFIGURABLE) != 0
But if the value of WIDGET_FEATURE_CONFIGURATION_OPTIONAL is 3, the
above check would fail.
Test: atest FrameworksServicesTests:AppWidgetServiceImplTest, atest
CtsAppWidgetTestCases
Bug: 177977976
Change-Id: I15d4baae5e17acb9a0b936485a53f9b3359d65ca
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions