From: Erfan Abdi Date: Sat, 9 Jan 2021 23:11:09 +0000 (+0330) Subject: MotoActions: doze: Register approach sensor properly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bcfceddbd835e8b653937c02684abc79855f6b32;p=GitHub%2FLineageOS%2Fandroid_hardware_motorola.git MotoActions: doze: Register approach sensor properly Change-Id: I55814f673756965614e4a4a3d687de8ac73ac173 --- diff --git a/MotoActions/src/org/lineageos/settings/device/doze/GlanceSensor.java b/MotoActions/src/org/lineageos/settings/device/doze/GlanceSensor.java index 9607cfc..db63c15 100644 --- a/MotoActions/src/org/lineageos/settings/device/doze/GlanceSensor.java +++ b/MotoActions/src/org/lineageos/settings/device/doze/GlanceSensor.java @@ -62,7 +62,7 @@ public class GlanceSensor implements ScreenStateNotifier { if (mMotoActionsSettings.isPickUpEnabled() && !mEnabled) { Log.d(TAG, "Enabling"); mSensorHelper.registerListener(mSensor, mGlanceListener); - mSensorHelper.registerListener(mSensor, mApproachGlanceListener); + mSensorHelper.registerListener(mApproachSensor, mApproachGlanceListener); mEnabled = true; } }