Fix ripple. Switch add to new UI.
This commit is contained in:
parent
6d773bfb36
commit
92271050be
2 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue