Small changes

This commit is contained in:
Victor Shcherb 2012-08-22 21:50:16 +02:00
parent 97a18e92b6
commit c5c3f3dbc6
2 changed files with 8 additions and 8 deletions

View file

@ -16,7 +16,7 @@ import android.widget.TextView;
public class TipsAndTricksActivity {
private int[][] tipNamesAndDescriptions = new int[][] {
{R.string.tip_recent_changes,R.string.tip_recent_changes_0_8_1_t},
{R.string.tip_recent_changes,R.string.tip_recent_changes_0_8_2_t},
{R.string.tip_rotation_switching,R.string.tip_rotation_switching_t},
{R.string.tip_update_index,R.string.tip_update_index_t},
{R.string.tip_day_night_mode,R.string.tip_day_night_mode_t},
@ -28,8 +28,8 @@ public class TipsAndTricksActivity {
{R.string.tip_select_destination_point,R.string.tip_select_destination_point_t},
{R.string.tip_navigation,R.string.tip_navigation_t},
{R.string.tip_app_mode,R.string.tip_app_mode_t},
{R.string.tip_recent_changes,R.string.tip_recent_changes_0_8_1_t},
{R.string.tip_recent_changes,R.string.tip_recent_changes_0_8_0_t},
{R.string.tip_recent_changes,R.string.tip_recent_changes_0_7_1_t},
{R.string.tip_map_switch,R.string.tip_map_switch_t},
};

View file

@ -308,11 +308,11 @@ public class MapControlsLayer extends OsmandMapLayer {
@Override
public void onClick(View v) {
if (view.isZooming()) {
// activity.changeZoom(view.getZoom() + 2 );
activity.changeZoom(view.getFloatZoom() + 2 * OsmandMapTileView.ZOOM_DELTA_1 );
activity.changeZoom(view.getZoom() + 2 );
// activity.changeZoom(view.getFloatZoom() + 2 * OsmandMapTileView.ZOOM_DELTA_1 );
} else {
// activity.changeZoom(view.getZoom() + 1 );
activity.changeZoom(view.getFloatZoom() + 1 * OsmandMapTileView.ZOOM_DELTA_1 );
activity.changeZoom(view.getZoom() + 1 );
// activity.changeZoom(view.getFloatZoom() + 1 * OsmandMapTileView.ZOOM_DELTA_1 );
}
}
@ -321,8 +321,8 @@ public class MapControlsLayer extends OsmandMapLayer {
zoomOutButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// activity.changeZoom(view.getZoom() - 1 );
activity.changeZoom(view.getFloatZoom() - 1 * OsmandMapTileView.ZOOM_DELTA_1 );
activity.changeZoom(view.getZoom() - 1 );
// activity.changeZoom(view.getFloatZoom() - 1 * OsmandMapTileView.ZOOM_DELTA_1 );
}
});
}