sm6375-common: dt2w: Convert value to String

This commit is contained in:
Andy | アンディ
2023-09-26 13:58:49 +08:00
committed by kamikaonashi
parent 9b7d5329de
commit 70cd32e04b

View File

@@ -50,7 +50,7 @@ public class DT2WServiceSM6375 extends Service {
void update() {
ContentResolver resolver = mContext.getContentResolver();
int dt2wValue = Secure.getInt(resolver, Secure.DOUBLE_TAP_TO_WAKE, 0) ? 1 : 0;
String dt2wValue = (Secure.getInt(resolver, Secure.DOUBLE_TAP_TO_WAKE, 0) == 1) ? "1" : "0";
SystemProperties.set("persist.sys.sm6375.dt2w", dt2wValue);
}