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:
parent
58edbe46fd
commit
b7bd300d26
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user