shared_string_ok
This commit is contained in:
parent
4509a66b6a
commit
26dc53aa4b
31 changed files with 36 additions and 37 deletions
|
@ -1965,7 +1965,6 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A
|
||||||
<string name="transport_stops_to_pass">stops to pass</string>
|
<string name="transport_stops_to_pass">stops to pass</string>
|
||||||
<string name="transport_route_distance">Itinerary distance</string>
|
<string name="transport_route_distance">Itinerary distance</string>
|
||||||
<string name="transport">Transport</string>
|
<string name="transport">Transport</string>
|
||||||
<string name="default_buttons_ok">OK</string>
|
|
||||||
<string name="show_transport_over_map_description">Show public transport stops on map</string>
|
<string name="show_transport_over_map_description">Show public transport stops on map</string>
|
||||||
<string name="show_transport_over_map">Show transport stops</string>
|
<string name="show_transport_over_map">Show transport stops</string>
|
||||||
<string name="hello">Navigation application OsmAnd</string>
|
<string name="hello">Navigation application OsmAnd</string>
|
||||||
|
|
|
@ -157,7 +157,7 @@ public class AppInitializer {
|
||||||
if (netOsmandWasInstalled) {
|
if (netOsmandWasInstalled) {
|
||||||
// Builder builder = new AccessibleAlertBuilder(this);
|
// Builder builder = new AccessibleAlertBuilder(this);
|
||||||
// builder.setMessage(R.string.osmand_net_previously_installed);
|
// builder.setMessage(R.string.osmand_net_previously_installed);
|
||||||
// builder.setPositiveButton(R.string.default_buttons_ok, null);
|
// builder.setPositiveButton(R.string.shared_string_ok, null);
|
||||||
// builder.show();
|
// builder.show();
|
||||||
} else {
|
} else {
|
||||||
AlertDialog.Builder builder = new AccessibleAlertBuilder(ctx);
|
AlertDialog.Builder builder = new AccessibleAlertBuilder(ctx);
|
||||||
|
|
|
@ -218,7 +218,7 @@ public class FavouritesDbHelper {
|
||||||
} else {
|
} else {
|
||||||
builder.setMessage(uiContext.getString(R.string.fav_point_dublicate_message, name));
|
builder.setMessage(uiContext.getString(R.string.fav_point_dublicate_message, name));
|
||||||
}
|
}
|
||||||
builder.setPositiveButton(R.string.default_buttons_ok, null);
|
builder.setPositiveButton(R.string.shared_string_ok, null);
|
||||||
p.setName(name);
|
p.setName(name);
|
||||||
return builder;
|
return builder;
|
||||||
}
|
}
|
||||||
|
|
|
@ -426,7 +426,7 @@ public class OsmandApplication extends Application {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
builder.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
builder.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
Intent intent = new Intent(uiContext, SettingsActivity.class);
|
Intent intent = new Intent(uiContext, SettingsActivity.class);
|
||||||
|
|
|
@ -498,7 +498,7 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment {
|
||||||
bld.setTitle(R.string.edit_group);
|
bld.setTitle(R.string.edit_group);
|
||||||
bld.setView(favEdit);
|
bld.setView(favEdit);
|
||||||
bld.setNegativeButton(R.string.default_buttons_cancel, null);
|
bld.setNegativeButton(R.string.default_buttons_cancel, null);
|
||||||
bld.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
bld.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
|
|
|
@ -89,7 +89,7 @@ public class IntermediatePointsDialog {
|
||||||
builder.setView(contentView);
|
builder.setView(contentView);
|
||||||
builder.setInverseBackgroundForced(true);
|
builder.setInverseBackgroundForced(true);
|
||||||
lv.setBackgroundColor(Color.WHITE);
|
lv.setBackgroundColor(Color.WHITE);
|
||||||
builder.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
builder.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
if(changeOrder) {
|
if(changeOrder) {
|
||||||
|
|
|
@ -190,7 +190,7 @@ public class SettingsActivity extends SettingsBaseActivity {
|
||||||
ll.addView(sv);
|
ll.addView(sv);
|
||||||
dialog.setContentView(ll);
|
dialog.setContentView(ll);
|
||||||
dialog.show();
|
dialog.show();
|
||||||
// bld.setPositiveButton(R.string.default_buttons_ok, null);
|
// bld.setPositiveButton(R.string.shared_string_ok, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -333,7 +333,7 @@ public class SettingsGeneralActivity extends SettingsBaseActivity {
|
||||||
settings.getExternalStorageDirectory().getAbsolutePath();
|
settings.getExternalStorageDirectory().getAbsolutePath();
|
||||||
editalert.setView(input);
|
editalert.setView(input);
|
||||||
editalert.setNegativeButton(R.string.default_buttons_cancel, null);
|
editalert.setNegativeButton(R.string.default_buttons_cancel, null);
|
||||||
editalert.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
editalert.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int whichButton) {
|
public void onClick(DialogInterface dialog, int whichButton) {
|
||||||
warnAboutChangingStorage(input.getText().toString());
|
warnAboutChangingStorage(input.getText().toString());
|
||||||
}
|
}
|
||||||
|
|
|
@ -370,7 +370,7 @@ public class SettingsNavigationActivity extends SettingsBaseActivity {
|
||||||
|
|
||||||
bld.setNegativeButton(R.string.default_buttons_cancel, null);
|
bld.setNegativeButton(R.string.default_buttons_cancel, null);
|
||||||
|
|
||||||
bld.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
bld.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int whichButton) {
|
public void onClick(DialogInterface dialog, int whichButton) {
|
||||||
for (int i = 0; i < prefs.length; i++) {
|
for (int i = 0; i < prefs.length; i++) {
|
||||||
prefs[i].set(tempPrefs[i]);
|
prefs[i].set(tempPrefs[i]);
|
||||||
|
|
|
@ -570,7 +570,7 @@ public abstract class SearchByNameAbstractActivity<T> extends OsmandListActivity
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
createMenuItem(menu, 1, R.string.default_buttons_ok, R.drawable.ic_action_ok_light,
|
createMenuItem(menu, 1, R.string.shared_string_ok, R.drawable.ic_action_ok_light,
|
||||||
R.drawable.ic_action_ok_dark, MenuItem.SHOW_AS_ACTION_ALWAYS);
|
R.drawable.ic_action_ok_dark, MenuItem.SHOW_AS_ACTION_ALWAYS);
|
||||||
}
|
}
|
||||||
return super.onCreateOptionsMenu(menu);
|
return super.onCreateOptionsMenu(menu);
|
||||||
|
|
|
@ -899,7 +899,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
||||||
private void showPOIDetails(final Amenity amenity, boolean en) {
|
private void showPOIDetails(final Amenity amenity, boolean en) {
|
||||||
AlertDialog.Builder b = new AlertDialog.Builder(SearchPOIActivity.this);
|
AlertDialog.Builder b = new AlertDialog.Builder(SearchPOIActivity.this);
|
||||||
b.setTitle(OsmAndFormatter.getPoiSimpleFormat(amenity, getMyApplication(), en));
|
b.setTitle(OsmAndFormatter.getPoiSimpleFormat(amenity, getMyApplication(), en));
|
||||||
b.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
b.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
dialog.cancel();
|
dialog.cancel();
|
||||||
|
|
|
@ -384,7 +384,7 @@ public class SearchTransportFragment extends Fragment implements SearchActivityC
|
||||||
}
|
}
|
||||||
|
|
||||||
b.setMessage(txt.toString());
|
b.setMessage(txt.toString());
|
||||||
b.setPositiveButton(getString(R.string.default_buttons_ok), null);
|
b.setPositiveButton(getString(R.string.shared_string_ok), null);
|
||||||
b.setNeutralButton(getString(R.string.transport_search_before), new DialogInterface.OnClickListener(){
|
b.setNeutralButton(getString(R.string.transport_search_before), new DialogInterface.OnClickListener(){
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
|
|
|
@ -63,7 +63,7 @@ public class SuggestExternalDirectoryDialog {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
bld.setPositiveButton(R.string.default_buttons_ok, null);
|
bld.setPositiveButton(R.string.shared_string_ok, null);
|
||||||
bld.show();
|
bld.show();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,7 +137,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
b.setTitle(R.string.profile_settings);
|
b.setTitle(R.string.profile_settings);
|
||||||
b.setPositiveButton(R.string.default_buttons_ok, null);
|
b.setPositiveButton(R.string.shared_string_ok, null);
|
||||||
b.setView(v);
|
b.setView(v);
|
||||||
b.show();
|
b.show();
|
||||||
}
|
}
|
||||||
|
|
|
@ -440,7 +440,7 @@ public class ConfigureMapMenu {
|
||||||
|
|
||||||
bld.setNegativeButton(R.string.default_buttons_cancel, null);
|
bld.setNegativeButton(R.string.default_buttons_cancel, null);
|
||||||
|
|
||||||
bld.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
bld.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int whichButton) {
|
public void onClick(DialogInterface dialog, int whichButton) {
|
||||||
for (int i = 0; i < prefs.size(); i++) {
|
for (int i = 0; i < prefs.size(); i++) {
|
||||||
prefs.get(i).set(tempPrefs[i]);
|
prefs.get(i).set(tempPrefs[i]);
|
||||||
|
|
|
@ -215,7 +215,7 @@ public class FavoriteDialogs {
|
||||||
point.setCategory(categoryStr);
|
point.setCategory(categoryStr);
|
||||||
Builder bld = FavouritesDbHelper.checkDublicates(point, helper, activity);
|
Builder bld = FavouritesDbHelper.checkDublicates(point, helper, activity);
|
||||||
if(bld != null) {
|
if(bld != null) {
|
||||||
bld.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
bld.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
addFavorite(activity, point, helper);
|
addFavorite(activity, point, helper);
|
||||||
|
|
|
@ -364,7 +364,7 @@ public class DistanceCalculatorPlugin extends OsmandPlugin {
|
||||||
pref.set(false);
|
pref.set(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
builder.setPositiveButton(R.string.default_buttons_ok, null);
|
builder.setPositiveButton(R.string.shared_string_ok, null);
|
||||||
|
|
||||||
builder.show();
|
builder.show();
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,7 +177,7 @@ public class BaseDownloadActivity extends ActionBarProgressActivity {
|
||||||
AlertDialog.Builder msg = new AlertDialog.Builder(this);
|
AlertDialog.Builder msg = new AlertDialog.Builder(this);
|
||||||
msg.setTitle(R.string.free_version_title);
|
msg.setTitle(R.string.free_version_title);
|
||||||
msg.setMessage(msgTx);
|
msg.setMessage(msgTx);
|
||||||
msg.setPositiveButton(R.string.default_buttons_ok, null);
|
msg.setPositiveButton(R.string.shared_string_ok, null);
|
||||||
msg.show();
|
msg.show();
|
||||||
} else {
|
} else {
|
||||||
downloadFilesCheckInternet();
|
downloadFilesCheckInternet();
|
||||||
|
@ -307,7 +307,7 @@ public class BaseDownloadActivity extends ActionBarProgressActivity {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
msg.setPositiveButton(R.string.default_buttons_ok, null);
|
msg.setPositiveButton(R.string.shared_string_ok, null);
|
||||||
msg.show();
|
msg.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -305,7 +305,7 @@ public class GpxUiHelper {
|
||||||
};
|
};
|
||||||
b.setAdapter(listAdapter, onClickListener);
|
b.setAdapter(listAdapter, onClickListener);
|
||||||
if (multipleChoice) {
|
if (multipleChoice) {
|
||||||
b.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
b.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
|
|
|
@ -769,7 +769,7 @@ public class WaypointDialogHelper implements OsmAndLocationListener {
|
||||||
});
|
});
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
|
AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
|
||||||
builder.setView(listView);
|
builder.setView(listView);
|
||||||
builder.setPositiveButton(R.string.default_buttons_ok, new OnClickListener() {
|
builder.setPositiveButton(R.string.shared_string_ok, new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
|
@ -812,7 +812,7 @@ public class WaypointDialogHelper implements OsmAndLocationListener {
|
||||||
});
|
});
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
|
AlertDialog.Builder builder = new AlertDialog.Builder(ctx);
|
||||||
builder.setView(listView);
|
builder.setView(listView);
|
||||||
builder.setPositiveButton(R.string.default_buttons_ok, new OnClickListener() {
|
builder.setPositiveButton(R.string.shared_string_ok, new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
|
|
|
@ -374,7 +374,7 @@ public class OsmandMonitoringPlugin extends OsmandPlugin implements MonitoringIn
|
||||||
LinearLayout ll = createIntervalChooseLayout(uiCtx, patternMsg, seconds, minutes,
|
LinearLayout ll = createIntervalChooseLayout(uiCtx, patternMsg, seconds, minutes,
|
||||||
choice, v, dm);
|
choice, v, dm);
|
||||||
dlg.setView(ll);
|
dlg.setView(ll);
|
||||||
dlg.setPositiveButton(R.string.default_buttons_ok, onclick);
|
dlg.setPositiveButton(R.string.shared_string_ok, onclick);
|
||||||
dlg.setNegativeButton(R.string.default_buttons_cancel, null);
|
dlg.setNegativeButton(R.string.default_buttons_cancel, null);
|
||||||
dlg.show();
|
dlg.show();
|
||||||
}
|
}
|
||||||
|
|
|
@ -276,7 +276,7 @@ public class SelectedGPXFragment extends ListFragment {
|
||||||
|
|
||||||
bld.setView(view);
|
bld.setView(view);
|
||||||
bld.setNegativeButton(R.string.default_buttons_cancel, null);
|
bld.setNegativeButton(R.string.default_buttons_cancel, null);
|
||||||
bld.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
bld.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
|
|
|
@ -56,7 +56,7 @@ public class NauticalMapsPlugin extends OsmandPlugin {
|
||||||
IndexConstants.BINARY_MAP_INDEX_EXT)){
|
IndexConstants.BINARY_MAP_INDEX_EXT)){
|
||||||
Builder dlg = new AlertDialog.Builder(activity);
|
Builder dlg = new AlertDialog.Builder(activity);
|
||||||
dlg.setMessage(net.osmand.plus.R.string.nautical_maps_missing);
|
dlg.setMessage(net.osmand.plus.R.string.nautical_maps_missing);
|
||||||
dlg.setPositiveButton(R.string.default_buttons_ok, new OnClickListener() {
|
dlg.setPositiveButton(R.string.shared_string_ok, new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
|
|
|
@ -429,7 +429,7 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
|
||||||
group = (OsMoGroup) (o instanceof OsMoGroup ? o : null);
|
group = (OsMoGroup) (o instanceof OsMoGroup ? o : null);
|
||||||
MenuItem mi = null;
|
MenuItem mi = null;
|
||||||
if (device != null) {
|
if (device != null) {
|
||||||
mi = createMenuItem(menu, ON_OFF_ACTION_ID, R.string.default_buttons_ok, 0, 0,
|
mi = createMenuItem(menu, ON_OFF_ACTION_ID, R.string.shared_string_ok, 0, 0,
|
||||||
MenuItemCompat.SHOW_AS_ACTION_ALWAYS);
|
MenuItemCompat.SHOW_AS_ACTION_ALWAYS);
|
||||||
}
|
}
|
||||||
if (device != null && device.getLastLocation() != null) {
|
if (device != null && device.getLastLocation() != null) {
|
||||||
|
@ -600,7 +600,7 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
|
||||||
tv.setMovementMethod(LinkMovementMethod.getInstance());
|
tv.setMovementMethod(LinkMovementMethod.getInstance());
|
||||||
tv.setText(sb.toString());
|
tv.setText(sb.toString());
|
||||||
bld.setView(sv);
|
bld.setView(sv);
|
||||||
bld.setPositiveButton(R.string.default_buttons_ok, null);
|
bld.setPositiveButton(R.string.shared_string_ok, null);
|
||||||
bld.setNegativeButton(R.string.osmo_invite, new OnClickListener() {
|
bld.setNegativeButton(R.string.osmo_invite, new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -865,7 +865,7 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements
|
||||||
|
|
||||||
builder.setView(v);
|
builder.setView(v);
|
||||||
builder.setNegativeButton(R.string.default_buttons_cancel, null);
|
builder.setNegativeButton(R.string.default_buttons_cancel, null);
|
||||||
builder.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
builder.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
if(!checkOperationIsNotRunning()) {
|
if(!checkOperationIsNotRunning()) {
|
||||||
|
|
|
@ -403,7 +403,7 @@ public class OsMoService implements OsMoReactor {
|
||||||
protected void showRegisterAgain(OsMoGroupsActivity ga, String msg) {
|
protected void showRegisterAgain(OsMoGroupsActivity ga, String msg) {
|
||||||
Builder bld = new AlertDialog.Builder(ga);
|
Builder bld = new AlertDialog.Builder(ga);
|
||||||
bld.setMessage(msg);
|
bld.setMessage(msg);
|
||||||
bld.setPositiveButton(R.string.default_buttons_ok, new OnClickListener() {
|
bld.setPositiveButton(R.string.shared_string_ok, new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
|
|
|
@ -134,7 +134,7 @@ public class SettingsOsMoActivity extends SettingsBaseActivity {
|
||||||
tv.setTextSize(TypedValue.COMPLEX_UNIT_SP, 19);
|
tv.setTextSize(TypedValue.COMPLEX_UNIT_SP, 19);
|
||||||
tv.setMovementMethod(LinkMovementMethod.getInstance());
|
tv.setMovementMethod(LinkMovementMethod.getInstance());
|
||||||
bld.setView(sv);
|
bld.setView(sv);
|
||||||
bld.setPositiveButton(R.string.default_buttons_ok, null);
|
bld.setPositiveButton(R.string.shared_string_ok, null);
|
||||||
bld.show();
|
bld.show();
|
||||||
return true;
|
return true;
|
||||||
} else if(preference == trackerId) {
|
} else if(preference == trackerId) {
|
||||||
|
|
|
@ -348,7 +348,7 @@ public class ParkingPositionPlugin extends OsmandPlugin {
|
||||||
timePicker.setCurrentHour(0);
|
timePicker.setCurrentHour(0);
|
||||||
timePicker.setCurrentMinute(0);
|
timePicker.setCurrentMinute(0);
|
||||||
|
|
||||||
setTime.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
setTime.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
choose.dismiss();
|
choose.dismiss();
|
||||||
|
@ -394,7 +394,7 @@ public class ParkingPositionPlugin extends OsmandPlugin {
|
||||||
Builder deleteEventWarning = new AlertDialog.Builder(activity);
|
Builder deleteEventWarning = new AlertDialog.Builder(activity);
|
||||||
deleteEventWarning.setTitle(activity.getString(R.string.osmand_parking_warning));
|
deleteEventWarning.setTitle(activity.getString(R.string.osmand_parking_warning));
|
||||||
deleteEventWarning.setMessage(activity.getString(R.string.osmand_parking_warning_text));
|
deleteEventWarning.setMessage(activity.getString(R.string.osmand_parking_warning_text));
|
||||||
deleteEventWarning.setNeutralButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
deleteEventWarning.setNeutralButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
}
|
}
|
||||||
|
|
|
@ -293,7 +293,7 @@ public class RoutePointsActivity extends OsmandListActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCreateOptionsMenu(Menu menu) {
|
public boolean onCreateOptionsMenu(Menu menu) {
|
||||||
createMenuItem(menu, OK_ID, R.string.default_buttons_ok,
|
createMenuItem(menu, OK_ID, R.string.shared_string_ok,
|
||||||
R.drawable.ic_action_map_marker_light, R.drawable.ic_action_map_marker_dark ,
|
R.drawable.ic_action_map_marker_light, R.drawable.ic_action_map_marker_dark ,
|
||||||
MenuItemCompat.SHOW_AS_ACTION_IF_ROOM);
|
MenuItemCompat.SHOW_AS_ACTION_IF_ROOM);
|
||||||
createMenuItem(menu, NAVIGATE_DIALOG_ID, R.string.navigate_dialog,
|
createMenuItem(menu, NAVIGATE_DIALOG_ID, R.string.navigate_dialog,
|
||||||
|
|
|
@ -354,7 +354,7 @@ public class SherpafyCustomization extends OsmAndAppCustomization {
|
||||||
bld.setMessage(R.string.stage_is_completed);
|
bld.setMessage(R.string.stage_is_completed);
|
||||||
}
|
}
|
||||||
bld.setTitle(getString(R.string.stage_is_completed_short))
|
bld.setTitle(getString(R.string.stage_is_completed_short))
|
||||||
.setPositiveButton(R.string.default_buttons_ok, null);
|
.setPositiveButton(R.string.shared_string_ok, null);
|
||||||
if (args != null && args.getBoolean(START_OVER)) {
|
if (args != null && args.getBoolean(START_OVER)) {
|
||||||
String id = args.getString(TOUR_PARAM);
|
String id = args.getString(TOUR_PARAM);
|
||||||
TourInformation tours = null;
|
TourInformation tours = null;
|
||||||
|
@ -522,7 +522,7 @@ public class SherpafyCustomization extends OsmAndAppCustomization {
|
||||||
ssf.onAttach(getActivity());
|
ssf.onAttach(getActivity());
|
||||||
AlertDialog dlg = new AlertDialog.Builder(getActivity())
|
AlertDialog dlg = new AlertDialog.Builder(getActivity())
|
||||||
.setView(ssf.onCreateView(getActivity().getLayoutInflater(), null, savedInstanceState))
|
.setView(ssf.onCreateView(getActivity().getLayoutInflater(), null, savedInstanceState))
|
||||||
.setPositiveButton(R.string.default_buttons_ok, null)
|
.setPositiveButton(R.string.shared_string_ok, null)
|
||||||
.create();
|
.create();
|
||||||
return dlg;
|
return dlg;
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,7 +100,7 @@ public class SherpafySelectToursFragment extends ListFragment {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
builder.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
String acCode = editText.getText().toString();
|
String acCode = editText.getText().toString();
|
||||||
|
|
|
@ -158,7 +158,7 @@ public class MapInfoWidgetsFactory {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
dlg.setView(ll);
|
dlg.setView(ll);
|
||||||
dlg.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {
|
dlg.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
app.getSettings().SERVICE_OFF_INTERVAL.set(vs.value);
|
app.getSettings().SERVICE_OFF_INTERVAL.set(vs.value);
|
||||||
|
|
Loading…
Reference in a new issue