doze: Move sensor trigger values to resources

This lets us use android.sensor.tilt_detector on Oplus.

Change-Id: I21db794d86656bfa41dfe32d33b272d4b55ec199
This commit is contained in:
LuK1337
2022-04-10 18:30:16 +02:00
parent e854088f20
commit d0e36f6d22
4 changed files with 26 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 The LineageOS Project
Copyright (C) 2021-2022 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License"
you may not use this file except in compliance with the License.
@@ -18,4 +18,8 @@
<!-- Sensor types -->
<string name="pickup_sensor_type"></string>
<string name="pocket_sensor_type"></string>
<!-- Sensor trigger values -->
<item name="pickup_sensor_value" format="float" type="dimen">1.0</item>
<item name="pocket_sensor_value" format="float" type="dimen">0.0</item>
</resources>