Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
4077e26fe5
4 changed files with 7 additions and 3 deletions
|
@ -147,7 +147,7 @@ public class OpeningHoursParser {
|
||||||
return s.substring(0, s.length()-2);
|
return s.substring(0, s.length()-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toStringNoMoths() {
|
public String toStringNoMonths() {
|
||||||
StringBuilder s = new StringBuilder();
|
StringBuilder s = new StringBuilder();
|
||||||
if (rules.isEmpty()) {
|
if (rules.isEmpty()) {
|
||||||
return "";
|
return "";
|
||||||
|
|
|
@ -16,6 +16,7 @@ import android.widget.ImageButton;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import net.osmand.PlatformUtil;
|
||||||
import net.osmand.osm.PoiType;
|
import net.osmand.osm.PoiType;
|
||||||
import net.osmand.osm.edit.OSMSettings;
|
import net.osmand.osm.edit.OSMSettings;
|
||||||
import net.osmand.plus.OsmandApplication;
|
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.EditPoiData;
|
||||||
import net.osmand.plus.osmedit.data.Tag;
|
import net.osmand.plus.osmedit.data.Tag;
|
||||||
|
|
||||||
|
import org.apache.commons.logging.Log;
|
||||||
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class AdvancedDataFragment extends Fragment {
|
public class AdvancedDataFragment extends Fragment {
|
||||||
private static final String TAG = "AdvancedDataFragment";
|
private static final String TAG = "AdvancedDataFragment";
|
||||||
|
private static final Log LOG = PlatformUtil.getLog(AdvancedDataFragment.class);
|
||||||
|
|
||||||
private TagAdapterLinearLayoutHack mAdapter;
|
private TagAdapterLinearLayoutHack mAdapter;
|
||||||
private EditPoiData.TagsChangedListener mTagsChangedListener;
|
private EditPoiData.TagsChangedListener mTagsChangedListener;
|
||||||
|
|
|
@ -297,7 +297,7 @@ public class EditPoiFragment extends Fragment {
|
||||||
fragmentManager.popBackStack();
|
fragmentManager.popBackStack();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
updateType(editPoiData.amenity);
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -295,7 +295,7 @@ public class NormalDataFragment extends Fragment {
|
||||||
}
|
}
|
||||||
if (mIsUserInput) {
|
if (mIsUserInput) {
|
||||||
Tag openHours = new Tag(OSMSettings.OSMTagKey.OPENING_HOURS.getValue(),
|
Tag openHours = new Tag(OSMSettings.OSMTagKey.OPENING_HOURS.getValue(),
|
||||||
openingHours.toStringNoMoths());
|
openingHours.toStringNoMonths());
|
||||||
data.tags.remove(openHours);
|
data.tags.remove(openHours);
|
||||||
data.tags.add(openHours);
|
data.tags.add(openHours);
|
||||||
data.notifyDatasetChanged(null);
|
data.notifyDatasetChanged(null);
|
||||||
|
|
Loading…
Reference in a new issue