Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 599fe958 authored by Rambo Wang's avatar Rambo Wang
Browse files

DeviceStateMonitor: turn double negative into forward positive logic

On determining when we should turn on/off indication filters,
we have a double negative logic. eg. shouldTurnOff return false
to indicate we should turn on the filter. This is a bit confusing
and prone to introducing bugs.

This CL turns this into forward logic, eg. shouldTurnOn return true
to indicate we should turn on, making the logic a bit easier to
understand.

Bug: 151116827 10622471
Test: atest DeviceStateMonitorTest
Merged-In: I9ace326defc9fbf9f14275e0f226abbaae4daa42
Change-Id: I9ace326defc9fbf9f14275e0f226abbaae4daa42
(cherry picked from commit 23d41623)
parent 6a7ad142
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment