summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorNed Burns <pixel@google.com>2019-07-19 14:26:15 -0400
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-07-25 04:11:46 +0000
commit4863f9be22cf51381017fd6c31845076f5a628b0 (patch)
tree9527e7d9eefed67c5f3d325366f3d2077ff0e664 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent64aa6e1ba1f5c96a4e5dc85a755f709b7c4b0e85 (diff)
Fix issue with media notifs being misbucketed
Previous code assumed that "isHighPriority" == "is in top section", which is not always true. Media notifs and some other notifs can appear in the top section even if they're not high priority. Because we detect section boundaries by iterating through the list until we find the first notif where isHighPriority == false, we were sometimes drawing the section boundary way too high. This change creates a new propery, isInTopSection() that accurately tracks this state. Setting this value in the proper location would require some seriously destabilizing refactors, so instead we set it in the list comparator, which is awful but here are. Test: manual Bug: 138320173 Change-Id: I19223720bac534ab92219a2962169097819e8efb Merged-In: I19223720bac534ab92219a2962169097819e8efb (cherry picked from commit 8c1b763dcf5df6e7fc7177dad5e7390adb229fa4) (cherry picked from commit 91e425d793495ab4ea496ecdb80a6e7d33e28a8e)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions