Increase haptics strength on unfold
Increase haptics strength on unfold. The change in haptics- Before 18 PRIMITIVE_LOW_TICK of intensity 0.1 followed by 1 PRIMITIVE_TICK of intensity 0.6 After 18 PRIMITIVE_LOW_TICK of intensity 0.5 followed by 1 PRIMITIVE_TICK of intensity 1.0 Test: Manual Feel the difference in haptics on unfold Logs Record the difference in the logs using 'adb shell dumpsys vibrator_manager' unit-test atest UnfoldHapticsPlayerTest Fixes: 281642496 Change-Id: I96b46c3856e891b8dd7880ff00ca94dd3a2fa56c
This commit is contained in:
committed by
Shivangi Dubey
parent
4b8e8ea3a5
commit
e9131c6bca
@@ -79,15 +79,15 @@ constructor(
|
||||
|
||||
private val hapticsScale: Float
|
||||
get() {
|
||||
val intensityString = SystemProperties.get("persist.unfold.haptics_scale", "0.1")
|
||||
return intensityString.toFloatOrNull() ?: 0.1f
|
||||
val intensityString = SystemProperties.get("persist.unfold.haptics_scale", "0.5")
|
||||
return intensityString.toFloatOrNull() ?: 0.5f
|
||||
}
|
||||
|
||||
private val hapticsScaleTick: Float
|
||||
get() {
|
||||
val intensityString =
|
||||
SystemProperties.get("persist.unfold.haptics_scale_end_tick", "0.6")
|
||||
return intensityString.toFloatOrNull() ?: 0.6f
|
||||
SystemProperties.get("persist.unfold.haptics_scale_end_tick", "1.0")
|
||||
return intensityString.toFloatOrNull() ?: 1.0f
|
||||
}
|
||||
|
||||
private val primitivesCount: Int
|
||||
|
||||
Reference in New Issue
Block a user