Fix compilation error

This commit is contained in:
Victor Shcherb 2019-07-09 14:37:07 +02:00
parent 60a68a4168
commit cb9c17861e
2 changed files with 4 additions and 2 deletions

View file

@ -17,6 +17,8 @@ import net.osmand.plus.OsmandSettings;
import net.osmand.plus.OsmandSettings.CommonPreference;
import net.osmand.plus.routing.VoiceRouter.VoiceMessageListener;
import java.util.List;
public class LockHelper implements SensorEventListener {
private static final int SENSOR_SENSITIVITY = 4;
@ -57,7 +59,7 @@ public class LockHelper implements SensorEventListener {
};
voiceMessageListener = new VoiceMessageListener() {
@Override
public void onVoiceMessage() {
public void onVoiceMessage(List<String> listCommands, List<String> played) {
unlockEvent();
}
};

View file

@ -911,7 +911,7 @@ public class VoiceRouter {
List<String> played = p.play();
notifyOnVoiceMessage(p.getListCommands(), played);
} else {
notifyOnVoiceMessage(Collections.emptyList(), Collections.emptyList());
notifyOnVoiceMessage(Collections.EMPTY_LIST, Collections.EMPTY_LIST);
}
}