Actions: Don't listen for stow events

This was required in the past to trigger doze when pulling out the
device from a pocket (we were handling the "pick up" action with Flat Up sensor).
Currently Glance sensor is being used which gets triggered in the previously described case itself
thus there's no need to keep stow implementation alive.
This commit is contained in:
Alberto97
2018-06-30 16:45:15 +02:00
committed by therootlord
parent d478b91437
commit a2c262dd16
2 changed files with 0 additions and 93 deletions

View File

@@ -39,7 +39,6 @@ import com.moto.actions.doze.GlanceSensor;
import com.moto.actions.doze.ProximitySensor;
import com.moto.actions.doze.ScreenReceiver;
import com.moto.actions.doze.ScreenStateNotifier;
import com.moto.actions.doze.StowSensor;
public class MotoActionsService extends IntentService implements ScreenStateNotifier,
UpdatedStateNotifier {
@@ -73,7 +72,6 @@ public class MotoActionsService extends IntentService implements ScreenStateNoti
// Actionable sensors get screen on/off notifications
mScreenStateNotifiers.add(new GlanceSensor(motoActionsSettings, mSensorHelper, mDozePulseAction));
mScreenStateNotifiers.add(new ProximitySensor(motoActionsSettings, mSensorHelper, mDozePulseAction));
mScreenStateNotifiers.add(new StowSensor(motoActionsSettings, mSensorHelper, mDozePulseAction));
// Other actions that are always enabled
mUpdatedStateNotifiers.add(new CameraActivationSensor(motoActionsSettings, mSensorHelper));