Update direction icons
Before Width: | Height: | Size: 911 B |
BIN
OsmAnd/res/drawable-hdpi/ic_bicycle.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
OsmAnd/res/drawable-hdpi/ic_car.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
OsmAnd/res/drawable-hdpi/ic_pedestrian.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
OsmAnd/res/drawable-mdpi/ic_bicycle.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
OsmAnd/res/drawable-mdpi/ic_car.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
OsmAnd/res/drawable-mdpi/ic_pedestrian.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
OsmAnd/res/drawable-xhdpi/ic_bicycle.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
OsmAnd/res/drawable-xhdpi/ic_car.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
OsmAnd/res/drawable-xhdpi/ic_pedestrian.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
|
@ -465,11 +465,11 @@ public class MapActivityActions implements DialogProvider {
|
|||
final CheckBox nonoptimal = (CheckBox) view.findViewById(R.id.OptimalCheckox);
|
||||
final ToggleButton[] buttons = new ToggleButton[ApplicationMode.values().length];
|
||||
buttons[ApplicationMode.CAR.ordinal()] = (ToggleButton) view.findViewById(R.id.CarButton);
|
||||
buttons[ApplicationMode.CAR.ordinal()].setButtonDrawable(lc ? R.drawable.car_dark : R.drawable.car_light );
|
||||
buttons[ApplicationMode.CAR.ordinal()].setButtonDrawable(R.drawable.ic_car );
|
||||
buttons[ApplicationMode.BICYCLE.ordinal()] = (ToggleButton) view.findViewById(R.id.BicycleButton);
|
||||
buttons[ApplicationMode.BICYCLE.ordinal()].setButtonDrawable(lc ? R.drawable.bicycle_dark : R.drawable.bicycle_light );
|
||||
buttons[ApplicationMode.BICYCLE.ordinal()].setButtonDrawable(R.drawable.ic_bicycle);
|
||||
buttons[ApplicationMode.PEDESTRIAN.ordinal()] = (ToggleButton) view.findViewById(R.id.PedestrianButton);
|
||||
buttons[ApplicationMode.PEDESTRIAN.ordinal()].setButtonDrawable(lc ? R.drawable.pedestrian_dark : R.drawable.pedestrian_light );
|
||||
buttons[ApplicationMode.PEDESTRIAN.ordinal()].setButtonDrawable(R.drawable.ic_pedestrian);
|
||||
|
||||
TextView tv = ((TextView) view.findViewById(R.id.TextView));
|
||||
tv.setText(generateRouteDescription(fromOrCurrent, to));
|
||||
|
|
|
@ -50,14 +50,12 @@ public class SearchHistoryFragment extends SherlockListFragment implements Sear
|
|||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
helper = SearchHistoryHelper.getInstance((ClientContext) getActivity().getApplicationContext());
|
||||
historyAdapter = new HistoryAdapter(helper.getHistoryEntries());
|
||||
setListAdapter(historyAdapter);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onActivityCreated(Bundle savedInstanceState) {
|
||||
super.onActivityCreated(savedInstanceState);
|
||||
historyAdapter = new HistoryAdapter(helper.getHistoryEntries());
|
||||
clearButton = new Button(getActivity());
|
||||
clearButton.setText(R.string.clear_all);
|
||||
clearButton.setOnClickListener(new View.OnClickListener() {
|
||||
|
@ -69,8 +67,10 @@ public class SearchHistoryFragment extends SherlockListFragment implements Sear
|
|||
}
|
||||
});
|
||||
getListView().addFooterView(clearButton);
|
||||
setListAdapter(historyAdapter);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
|
|