From c43537b1312232e9c6b785a882c8004ba9cb8d37 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Mon, 31 Jul 2017 11:59:59 +0300 Subject: [PATCH] Add do not use button (cherry picked from commit a787502) --- OsmAnd/src/net/osmand/plus/OsmandApplication.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/OsmandApplication.java b/OsmAnd/src/net/osmand/plus/OsmandApplication.java index c31fa952b9..f23d2bd064 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandApplication.java +++ b/OsmAnd/src/net/osmand/plus/OsmandApplication.java @@ -436,6 +436,12 @@ public class OsmandApplication extends MultiDexApplication { } } }); + builder.setNeutralButton(R.string.shared_string_do_not_use, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialogInterface, int i) { + osmandSettings.VOICE_PROVIDER.set(OsmandSettings.VOICE_PROVIDER_NOT_USE); + } + }); builder.setView(view); builder.show();