Fix compilation error
This commit is contained in:
parent
60a68a4168
commit
cb9c17861e
2 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue