Add speech rate to accessibility settings

This commit is contained in:
vshcherb 2014-02-06 01:08:40 +01:00
parent 1b4c6c3095
commit 08f63a3a70
2 changed files with 3 additions and 4 deletions

View file

@ -54,7 +54,6 @@ import android.content.res.Resources;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.util.FloatMath;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
@ -577,7 +576,7 @@ public class MapActivityActions implements DialogProvider {
.listen(new OnContextMenuClick() {
@Override
public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) {
if (getMyApplication().getInternalAPI().accessibilityEnabled()) {
if (getMyApplication().accessibilityEnabled()) {
whereAmIDialog();
} else {
mapActivity.getMapViewTrackingUtilities().backToLocationImpl();

View file

@ -19,7 +19,7 @@ import android.widget.TextView;
public class TipsAndTricksActivity {
private int[][] tipNamesAndDescriptions = new int[][] {
{R.string.tip_recent_changes,R.string.tip_recent_changes_1_6_t},
{R.string.tip_recent_changes,R.string.tip_recent_changes_1_7_t},
{R.string.tip_update_index,R.string.tip_update_index_t},
{R.string.tip_navigation,R.string.tip_navigation_t},
{R.string.tip_app_mode,R.string.tip_app_mode_t_v2},
@ -116,7 +116,7 @@ public class TipsAndTricksActivity {
dlg.setContentView(R.layout.tips_and_tricks);
dlg.getWindow().setLayout(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
final TextView tipDescription = (TextView) dlg.findViewById(R.id.TipDescription);
if (!((OsmandApplication)ctx.getApplicationContext()).getInternalAPI().accessibilityExtensions()) {
if (!((OsmandApplication)ctx.getApplicationContext()).accessibilityExtensions()) {
// tipDescription.setMovementMethod(ScrollingMovementMethod.getInstance());
tipDescription.setMovementMethod(LinkMovementMethod.getInstance());
}