doze: Fix not working sensors on mtk platform
Remove sensorsEnabled check as it breaks doze on mtk
This commit is contained in:
parent
d09ba4bf0a
commit
15e730949e
|
@ -50,7 +50,7 @@ public final class Utils {
|
|||
}
|
||||
|
||||
protected static void checkDozeService(Context context) {
|
||||
if (isDozeEnabled(context) && sensorsEnabled(context)) {
|
||||
if (isDozeEnabled(context)) {
|
||||
startService(context);
|
||||
} else {
|
||||
stopService(context);
|
||||
|
|
Loading…
Reference in New Issue