gesture: messages and sensitivity changes for small (warmth) scales; devicelistener dedup (#6468)

* deduplicate code on warmth/brightness swipes

if device has a small scale (e.g. warmth is going from 0..10)
* adjust warmth message
* use a smaller gesture sensitivity
This commit is contained in:
zwim
2020-08-17 09:42:34 +02:00
committed by GitHub
parent 5a7ecabaed
commit b3f64dc73b
2 changed files with 37 additions and 56 deletions

View File

@@ -20,6 +20,8 @@ function AndroidPowerD:init()
if self.device:hasNaturalLight() then
self.warm_diff = android:getScreenMaxWarmth() - android:getScreenMinWarmth()
self.fl_warmth = self:getWarmth()
self.fl_warmth_min = android:getScreenMinWarmth()
self.fl_warmth_max = android:getScreenMaxWarmth()
end
end