Fix ripple. Switch add to new UI.

This commit is contained in:
Dima-1 2020-03-23 12:43:04 +02:00
parent 6d773bfb36
commit 92271050be
2 changed files with 5 additions and 2 deletions

View file

@ -40,7 +40,7 @@ public class FavoritePointEditor extends PointEditor {
favorite = new FavouritePoint(latLon.getLatitude(), latLon.getLongitude(), title, lastCategory);
favorite.setDescription("");
favorite.setOriginObjectName(originObjectName);
FavoritePointEditorFragment.showInstance(mapActivity);
FavoritePointEditorFragmentNew.showInstance(mapActivity);
}
public void add(LatLon latLon, String title, String originObjectName, String categoryName, int categoryColor, boolean autoFill) {
@ -63,7 +63,7 @@ public class FavoritePointEditor extends PointEditor {
favorite.setDescription("");
favorite.setOriginObjectName(originObjectName);
FavoritePointEditorFragment.showAutoFillInstance(mapActivity, autoFill);
FavoritePointEditorFragmentNew.showAutoFillInstance(mapActivity, autoFill);
}
public void edit(FavouritePoint favorite) {

View file

@ -796,6 +796,9 @@ public abstract class PointEditorFragmentNew extends BaseOsmAndFragment {
rectContourDrawable.setStroke(AndroidUtils.dpToPx(app, strokeWidth), strokeColor);
holder.groupButton.setImageDrawable(rectContourDrawable);
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
AndroidUtils.setBackground(app, holder.groupButton, nightMode, R.drawable.ripple_solid_light, R.drawable.ripple_solid_dark);
}
}
}