Small bt sco improvement

This commit is contained in:
Hardy 2017-03-17 18:18:13 -07:00 committed by GitHub
parent eae74c5d03
commit 2e85b9efea

View file

@ -281,7 +281,7 @@ public class TestVoiceActivity extends OsmandActionBarActivity {
((OsmandApplication) getApplication()).getSettings().BT_SCO_DELAY.set(2500); ((OsmandApplication) getApplication()).getSettings().BT_SCO_DELAY.set(2500);
} else if (((OsmandApplication) getApplication()).getSettings().BT_SCO_DELAY.get() == 2500) { } else if (((OsmandApplication) getApplication()).getSettings().BT_SCO_DELAY.get() == 2500) {
((OsmandApplication) getApplication()).getSettings().BT_SCO_DELAY.set(3000); ((OsmandApplication) getApplication()).getSettings().BT_SCO_DELAY.set(3000);
} else if (((OsmandApplication) getApplication()).getSettings().BT_SCO_DELAY.get() == 3000) { } else {
((OsmandApplication) getApplication()).getSettings().BT_SCO_DELAY.set(1000); ((OsmandApplication) getApplication()).getSettings().BT_SCO_DELAY.set(1000);
} }
Toast.makeText(TestVoiceActivity.this, "BT SCO init delay changed to " + ((OsmandApplication) getApplication()).getSettings().BT_SCO_DELAY.get() + " ms", Toast.LENGTH_LONG).show(); Toast.makeText(TestVoiceActivity.this, "BT SCO init delay changed to " + ((OsmandApplication) getApplication()).getSettings().BT_SCO_DELAY.get() + " ms", Toast.LENGTH_LONG).show();