Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-08-26 10:00:45 +02:00
commit 4077e26fe5
4 changed files with 7 additions and 3 deletions

View file

@ -147,7 +147,7 @@ public class OpeningHoursParser {
return s.substring(0, s.length()-2);
}
public String toStringNoMoths() {
public String toStringNoMonths() {
StringBuilder s = new StringBuilder();
if (rules.isEmpty()) {
return "";

View file

@ -16,6 +16,7 @@ import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.TextView;
import net.osmand.PlatformUtil;
import net.osmand.osm.PoiType;
import net.osmand.osm.edit.OSMSettings;
import net.osmand.plus.OsmandApplication;
@ -24,11 +25,14 @@ import net.osmand.plus.activities.MapActivity;
import net.osmand.plus.osmedit.data.EditPoiData;
import net.osmand.plus.osmedit.data.Tag;
import org.apache.commons.logging.Log;
import java.util.Iterator;
import java.util.Map;
public class AdvancedDataFragment extends Fragment {
private static final String TAG = "AdvancedDataFragment";
private static final Log LOG = PlatformUtil.getLog(AdvancedDataFragment.class);
private TagAdapterLinearLayoutHack mAdapter;
private EditPoiData.TagsChangedListener mTagsChangedListener;

View file

@ -297,7 +297,7 @@ public class EditPoiFragment extends Fragment {
fragmentManager.popBackStack();
}
});
updateType(editPoiData.amenity);
return view;
}

View file

@ -295,7 +295,7 @@ public class NormalDataFragment extends Fragment {
}
if (mIsUserInput) {
Tag openHours = new Tag(OSMSettings.OSMTagKey.OPENING_HOURS.getValue(),
openingHours.toStringNoMoths());
openingHours.toStringNoMonths());
data.tags.remove(openHours);
data.tags.add(openHours);
data.notifyDatasetChanged(null);