Merge pull request #7771 from osmandapp/preferences_fixes
Settings fixes
This commit is contained in:
commit
5558bacc16
2 changed files with 2 additions and 2 deletions
|
@ -451,7 +451,7 @@ public class OsmandApplication extends MultiDexApplication {
|
|||
|
||||
public void initVoiceCommandPlayer(final Activity uiContext, ApplicationMode applicationMode,
|
||||
boolean warningNoneProvider, Runnable run, boolean showDialog, boolean force) {
|
||||
String voiceProvider = osmandSettings.VOICE_PROVIDER.get();
|
||||
String voiceProvider = osmandSettings.VOICE_PROVIDER.getModeValue(applicationMode);
|
||||
if (voiceProvider == null || OsmandSettings.VOICE_PROVIDER_NOT_USE.equals(voiceProvider)) {
|
||||
if (warningNoneProvider && voiceProvider == null) {
|
||||
final AlertDialog.Builder builder = new AlertDialog.Builder(uiContext);
|
||||
|
|
|
@ -720,7 +720,7 @@ public class RouteProvider {
|
|||
RoutingConfiguration cf = config.build( params.mode.getRoutingProfile(), params.start.hasBearing() ?
|
||||
params.start.getBearing() / 180d * Math.PI : null,
|
||||
memoryLimit, paramsR);
|
||||
if(settings.ENABLE_TIME_CONDITIONAL_ROUTING.get()) {
|
||||
if(settings.ENABLE_TIME_CONDITIONAL_ROUTING.getModeValue(params.mode)) {
|
||||
cf.routeCalculationTime = System.currentTimeMillis();
|
||||
}
|
||||
return cf;
|
||||
|
|
Loading…
Reference in a new issue