1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-02 10:33:36 +00:00

Fix disableProximityEvents again

This commit is contained in:
世界 2020-11-04 14:09:58 +00:00
parent 58edbe46fd
commit b7bd300d26
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -90,6 +90,8 @@ import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import tw.nekomimi.nekogram.NekoConfig;
/**
* Created by grishka on 21.07.17.
*/
@ -921,6 +923,7 @@ public abstract class VoIPBaseService extends Service implements SensorEventList
private void checkIsNear(boolean newIsNear) {
if (newIsNear != isProximityNear) {
if (NekoConfig.disableProximityEvents) return;
if (BuildVars.LOGS_ENABLED) {
FileLog.d("proximity " + newIsNear);
}