summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Wesley Wang <wesleycwwang@google.com> 2022-05-19 18:24:18 +0800
committer Wesley Wang <wesleycwwang@google.com> 2022-05-20 11:56:53 +0800
commit2bc7c1b7bb2a9e91eac02839875bb46e3cb6c632 (patch)
tree4cb83154767e84e5be8dfc2c2ae1902a8b1791a4 /libs/androidfw/Util.cpp
parent24928c481da61e2012ee226797f1ce2a12a05925 (diff)
Remove EnhancedEstimates isHybird flag from trigger condition
- In some rare cases, EnhancedEstimates will not provide isHybird as true(means EnhancedEstimates can not provide data to us), it will makes low battery warning logic back to the previous trigger flow, remove isHybird condition to make sure we always use the new trigger condition. - Although BatteryStateSnapshot will be created by different EnhancedEstimates data, but we already remove the usage of remaining time as our trigger condition(which provided by EnhancedEstimates) so we are safe to always use new trigger condition with or without EnhancedEstimates data. we should think about refactor the class here in the future. - Use current battery level as notifications string content instead of a fixed value. Bug: 232663250 Bug: 232686016 Bug: 232712770 Test: atest SystemUITests Change-Id: I412be50763db39d364757ae3afc2927467451118
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions