summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMill Chen <millchen@google.com>2020-06-03 23:41:47 +0800
committerMill Chen <millchen@google.com>2020-06-06 01:31:20 +0800
commit5a558b99021fe4cb7d0a8c15785690e57463afee (patch)
tree8bd40aa5f4517afc5b53353cdd989d7c8e6f2eb4 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentdf98b27008118474bfe075f85d8e41a3ab7e9451 (diff)
Fix NullPointerException on estimate object
The severe low battery warning notification isn't working if a device which uses time based estimates doesn't connect to Wi-Fi or mobile data. This is caused by a null estimate object which is obtained from EnhancedEstimates. This change is to make EnhancedEstimates return an unknown estimate and add checking time remaining condition to see if time remaining is valid. AOSP behavior is unchanged and this only affects devices which use time based estimates. Bug: 152880156 Test: atest SystemUITests Change-Id: I8f8ac67ebe66ffd748d958d34f9b31324c52f681
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions