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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user