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

Skip to content
Commit 23d41623 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
Test: atest DeviceStateMonitorTest
Change-Id: I9ace326defc9fbf9f14275e0f226abbaae4daa42
parent 302183b6
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