diff --git a/OsmAnd/res/layout/fragment_edit_poi.xml b/OsmAnd/res/layout/fragment_edit_poi.xml
index 859edef257..07ea401c68 100644
--- a/OsmAnd/res/layout/fragment_edit_poi.xml
+++ b/OsmAnd/res/layout/fragment_edit_poi.xml
@@ -123,20 +123,22 @@
android:layout_gravity="bottom"
android:gravity="right">
-
+ android:textColor="@color/dashboard_general_button_text_light"
+ app:textAllCapsCompat="true"/>
-
+ tools:text="Save"
+ app:textAllCapsCompat="true"/>
diff --git a/OsmAnd/res/layout/fragment_edit_poi_advanced.xml b/OsmAnd/res/layout/fragment_edit_poi_advanced.xml
index 079dc18959..9c4b2e9bf5 100644
--- a/OsmAnd/res/layout/fragment_edit_poi_advanced.xml
+++ b/OsmAnd/res/layout/fragment_edit_poi_advanced.xml
@@ -98,9 +98,9 @@
diff --git a/OsmAnd/res/layout/fragment_edit_poi_normal.xml b/OsmAnd/res/layout/fragment_edit_poi_normal.xml
index fef64842fc..21039f941b 100644
--- a/OsmAnd/res/layout/fragment_edit_poi_normal.xml
+++ b/OsmAnd/res/layout/fragment_edit_poi_normal.xml
@@ -111,7 +111,7 @@
android:layout_below="@id/openHoursContainer"
android:layout_marginLeft="72dp"
android:text="Add opening hours"
- android:textSize="12sp"
+ android:textSize="@dimen/default_sub_text_size"
osmand:typeface="@string/font_roboto_medium"/>
diff --git a/OsmAnd/res/layout/open_time_list_item.xml b/OsmAnd/res/layout/open_time_list_item.xml
index ec08cfac52..c0bf33deb3 100644
--- a/OsmAnd/res/layout/open_time_list_item.xml
+++ b/OsmAnd/res/layout/open_time_list_item.xml
@@ -26,6 +26,8 @@
android:id="@+id/daysTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:textColor="@color/dashboard_black"
+ android:textSize="@dimen/default_list_text_size"
tools:text="Mo-We"/>
Udvidet
Bygningsnummer
Næste
- Åbning på
- Lukning på
+ Åbner
+ Lukker
Basis
diff --git a/OsmAnd/res/values-it/strings.xml b/OsmAnd/res/values-it/strings.xml
index 547d74f851..52da30e23d 100644
--- a/OsmAnd/res/values-it/strings.xml
+++ b/OsmAnd/res/values-it/strings.xml
@@ -1700,7 +1700,7 @@ Si consiglia di aggiungere uno o più punti intermedi per migliorarne le prestaz
Nomi locali
Swahili
Avanti
- Casa
+ Inizio
Invia i dati di tracciamento a uno specifico servizio web se la registrazione GPX è abilitata.
Tracciamento online (GPX richiesto)
Avvia il tracciamento online
@@ -2150,4 +2150,10 @@ Si consiglia di aggiungere uno o più punti intermedi per migliorarne le prestaz
Evita i treni navetta
Evita i treni navetta
Contribuisci il/i PDI
+Semplice
+ Esteso
+ Numero civico
+ Avanti
+ Apre alle
+ Chiude alle
diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml
index aa0dd815ca..f7f0600fb8 100644
--- a/OsmAnd/res/values/colors.xml
+++ b/OsmAnd/res/values/colors.xml
@@ -55,7 +55,8 @@
#292f33
- #727272
+ #727272
+ #ccc
#448AFF
#eaeaea
diff --git a/OsmAnd/src/net/osmand/plus/IconsCache.java b/OsmAnd/src/net/osmand/plus/IconsCache.java
index 34a9afb995..842ceaa3e0 100644
--- a/OsmAnd/src/net/osmand/plus/IconsCache.java
+++ b/OsmAnd/src/net/osmand/plus/IconsCache.java
@@ -51,7 +51,7 @@ public class IconsCache {
public Drawable getContentIcon(int id) {
- return getDrawable(id, app.getSettings().isLightContent() ? R.color.icon_color_light : 0);
+ return getDrawable(id, app.getSettings().isLightContent() ? R.color.icon_color : 0);
}
@@ -60,7 +60,7 @@ public class IconsCache {
}
public Drawable getIcon(int id, boolean light) {
- return getDrawable(id, light ? R.color.icon_color_light : 0);
+ return getDrawable(id, light ? R.color.icon_color : 0);
}
}
diff --git a/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java b/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java
index 85b7f1e354..7608b8f8c2 100644
--- a/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java
+++ b/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java
@@ -135,7 +135,7 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
backup = getActivity().getResources().getDrawable(R.drawable.ic_type_archive);
backup.mutate();
if (light) {
- backup.setColorFilter(getResources().getColor(R.color.icon_color_light), PorterDuff.Mode.MULTIPLY);
+ backup.setColorFilter(getResources().getColor(R.color.icon_color), PorterDuff.Mode.MULTIPLY);
}
sdcard = getActivity().getResources().getDrawable(R.drawable.ic_sdcard);
sdcard.mutate();
diff --git a/OsmAnd/src/net/osmand/plus/osmedit/AdvancedDataFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/AdvancedDataFragment.java
index 0545954392..84a73e7885 100644
--- a/OsmAnd/src/net/osmand/plus/osmedit/AdvancedDataFragment.java
+++ b/OsmAnd/src/net/osmand/plus/osmedit/AdvancedDataFragment.java
@@ -64,7 +64,7 @@ public class AdvancedDataFragment extends Fragment {
}
});
deleteDrawable = ((MapActivity)getActivity()).getMyApplication().getIconsCache()
- .getContentIcon(R.drawable.ic_action_remove_dark);
+ .getPaintedContentIcon(R.drawable.ic_action_remove_dark, R.color.icon_color_light);
deleteItemImageButton.setImageDrawable(deleteDrawable);
TextView nameTextView = (TextView) view.findViewById(R.id.nameTextView);
TextView amenityTagTextView = (TextView) view.findViewById(R.id.amenityTagTextView);
diff --git a/OsmAnd/src/net/osmand/plus/osmedit/BasicDataFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/BasicDataFragment.java
index d616d5c0a6..6322109aa5 100644
--- a/OsmAnd/src/net/osmand/plus/osmedit/BasicDataFragment.java
+++ b/OsmAnd/src/net/osmand/plus/osmedit/BasicDataFragment.java
@@ -25,6 +25,7 @@ import net.osmand.plus.activities.MapActivity;
import net.osmand.plus.osmedit.data.EditPoiData;
import net.osmand.plus.osmedit.data.Tag;
import net.osmand.plus.osmedit.dialogs.OpeningHoursDaysDialogFragment;
+import net.osmand.plus.osmedit.dialogs.OpeningHoursHoursDialogFragment;
import net.osmand.util.OpeningHoursParser;
import net.osmand.util.OpeningHoursParser.BasicOpeningHourRule;
@@ -94,7 +95,9 @@ public class BasicDataFragment extends Fragment {
});
LinearLayout openHoursContainer = (LinearLayout) view.findViewById(R.id.openHoursContainer);
Drawable clockDrawable = iconsCache.getContentIcon(R.drawable.ic_action_time);
- Drawable deleteDrawable = iconsCache.getContentIcon(R.drawable.ic_action_remove_dark);
+ Drawable deleteDrawable = iconsCache
+ .getPaintedContentIcon(R.drawable.ic_action_remove_dark,
+ getActivity().getResources().getColor(R.color.icon_color_light));
if (savedInstanceState != null && savedInstanceState.containsKey(OPENING_HOURS)) {
mOpeningHoursAdapter = new OpeningHoursAdapter(
(OpeningHoursParser.OpeningHours) savedInstanceState.getSerializable(OPENING_HOURS),
@@ -553,7 +556,7 @@ public class BasicDataFragment extends Fragment {
closingTextView.setText(formatTime(enHour, enTime));
timeContainer.setVisibility(View.VISIBLE);
- view.setOnClickListener(new View.OnClickListener() {
+ daysTextView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
OpeningHoursDaysDialogFragment fragment =
@@ -561,6 +564,22 @@ public class BasicDataFragment extends Fragment {
fragment.show(getChildFragmentManager(), "OpenTimeDialogFragment");
}
});
+ openingTextView.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ OpeningHoursHoursDialogFragment fragment =
+ OpeningHoursHoursDialogFragment.createInstance(rule, position, true);
+ fragment.show(getChildFragmentManager(), "OpeningHoursHoursDialogFragment");
+ }
+ });
+ closingTextView.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ OpeningHoursHoursDialogFragment fragment =
+ OpeningHoursHoursDialogFragment.createInstance(rule, position, false);
+ fragment.show(getChildFragmentManager(), "OpeningHoursHoursDialogFragment");
+ }
+ });
} else if (openingHours.getRules().get(position) instanceof UnparseableRule) {
daysTextView.setText(openingHours.getRules().get(position).toRuleString(false));
timeContainer.setVisibility(View.GONE);
diff --git a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/OpeningHoursDaysDialogFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/OpeningHoursDaysDialogFragment.java
index db134d2056..b02b47c65d 100644
--- a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/OpeningHoursDaysDialogFragment.java
+++ b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/OpeningHoursDaysDialogFragment.java
@@ -10,6 +10,7 @@ import android.text.format.DateFormat;
import net.osmand.PlatformUtil;
import net.osmand.plus.R;
+import net.osmand.plus.osmedit.BasicDataFragment;
import net.osmand.util.OpeningHoursParser;
import org.apache.commons.logging.Log;
@@ -30,7 +31,7 @@ public class OpeningHoursDaysDialogFragment extends DialogFragment {
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
- boolean add = positionToAdd > -1;
+ final boolean createNew = positionToAdd == -1;
Calendar inst = Calendar.getInstance();
final int first = inst.getFirstDayOfWeek();
final boolean[] dayToShow = new boolean[7];
@@ -55,7 +56,8 @@ public class OpeningHoursDaysDialogFragment extends DialogFragment {
}
});
- builder.setPositiveButton(getActivity().getString(R.string.next_proceed),
+ builder.setPositiveButton(createNew ? R.string.next_proceed
+ : R.string.shared_string_save,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
@@ -63,9 +65,13 @@ public class OpeningHoursDaysDialogFragment extends DialogFragment {
for (int i = 0; i < 7; i++) {
days[(first + 5 + i) % 7] = dayToShow[i];
}
-
- OpeningHoursHoursDialogFragment.createInstance(item, positionToAdd, true)
- .show(getFragmentManager(), "TimePickerDialogFragment");
+ if (createNew) {
+ OpeningHoursHoursDialogFragment.createInstance(item, positionToAdd, true)
+ .show(getFragmentManager(), "TimePickerDialogFragment");
+ } else {
+ ((BasicDataFragment) getParentFragment())
+ .setBasicOpeningHoursRule(item, positionToAdd);
+ }
}
});
diff --git a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/OpeningHoursHoursDialogFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/OpeningHoursHoursDialogFragment.java
index df0b416e96..1248321048 100644
--- a/OsmAnd/src/net/osmand/plus/osmedit/dialogs/OpeningHoursHoursDialogFragment.java
+++ b/OsmAnd/src/net/osmand/plus/osmedit/dialogs/OpeningHoursHoursDialogFragment.java
@@ -28,6 +28,7 @@ public class OpeningHoursHoursDialogFragment extends DialogFragment {
Bundle args = getArguments();
final boolean isStart = args.getBoolean(IS_START);
final int positionToAdd = args.getInt(POSITION_TO_ADD);
+ final boolean createNew = positionToAdd == -1;
final OpeningHoursParser.BasicOpeningHourRule item = (OpeningHoursParser.BasicOpeningHourRule)
args.getSerializable(BASIC_OPENING_HOUR_RULE);
AlertDialog.Builder builder =
@@ -43,24 +44,30 @@ public class OpeningHoursHoursDialogFragment extends DialogFragment {
timePicker.setCurrentMinute(minute);
builder.setView(timePicker)
- .setPositiveButton(R.string.next_proceed, new DialogInterface.OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog, int which) {
- int minute = timePicker.getCurrentMinute();
- int hourOfDay = timePicker.getCurrentHour();
- int time = minute + hourOfDay * 60;
- if (isStart) {
- item.setStartTime(time);
- OpeningHoursHoursDialogFragment
- .createInstance(item, positionToAdd, false)
- .show(getFragmentManager(), "TimePickerDialogFragment");
- } else {
- item.setEndTime(time);
- ((BasicDataFragment) getParentFragment())
- .setBasicOpeningHoursRule(item, positionToAdd);
- }
- }
- })
+ .setPositiveButton(isStart && createNew ? R.string.next_proceed
+ : R.string.shared_string_save,
+ new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ int minute = timePicker.getCurrentMinute();
+ int hourOfDay = timePicker.getCurrentHour();
+ int time = minute + hourOfDay * 60;
+ if (isStart && createNew) {
+ item.setStartTime(time);
+ OpeningHoursHoursDialogFragment
+ .createInstance(item, positionToAdd, false)
+ .show(getFragmentManager(), "TimePickerDialogFragment");
+ } else {
+ if (isStart) {
+ item.setStartTime(time);
+ } else {
+ item.setEndTime(time);
+ }
+ ((BasicDataFragment) getParentFragment())
+ .setBasicOpeningHoursRule(item, positionToAdd);
+ }
+ }
+ })
.setNegativeButton(R.string.shared_string_cancel, null);
int paddingInDp = 18;
diff --git a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java
index c8d7000743..3d89315ac6 100644
--- a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java
+++ b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java
@@ -660,7 +660,7 @@ public class MapControlsLayer extends OsmandMapLayer {
if (!enabled) {
backToLocationControl.setBg(R.drawable.btn_circle, R.drawable.btn_circle_night);
- backToLocationControl.setIconColorId(R.color.icon_color_light, 0);
+ backToLocationControl.setIconColorId(R.color.icon_color, 0);
} else if (tracked) {
backToLocationControl.setBg(R.drawable.btn_circle, R.drawable.btn_circle_night);
backToLocationControl.setIconColorId(R.color.color_myloc_distance);
@@ -751,7 +751,7 @@ public class MapControlsLayer extends OsmandMapLayer {
int resId;
int resLightId;
int resDarkId;
- int resClrLight = R.color.icon_color_light;
+ int resClrLight = R.color.icon_color;
int resClrDark = 0;
@@ -877,7 +877,7 @@ public class MapControlsLayer extends OsmandMapLayer {
Drawable[] icons = new Drawable[vls.size()];
int[] values = new int[vls.size()];
for (int k = 0; k < modes.length; k++) {
- icons[k] = app.getIconsCache().getIcon(modes[k].getSmallIconDark(), R.color.icon_color_light);
+ icons[k] = app.getIconsCache().getIcon(modes[k].getSmallIconDark(), R.color.icon_color);
values[k] = modes[k].getStringResource();
}
for (int i = 0; i < modes.length; i++) {