diff --git a/OsmAnd/src/net/osmand/plus/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/OsmandSettings.java index fa9972e181..8cc8957754 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/OsmandSettings.java @@ -1143,7 +1143,7 @@ public class OsmandSettings { public final OsmandPreference SHOULD_SHOW_FREE_VERSION_BANNER = new BooleanPreference("should_show_free_version_banner", false).makeGlobal().cache(); - public final OsmandPreference USE_MAP_MARKERS = new BooleanPreference("use_map_markers", false).makeGlobal().cache(); + public final OsmandPreference USE_MAP_MARKERS = new BooleanPreference("use_map_markers", true).makeGlobal().cache(); public final CommonPreference MAP_MARKERS_MODE = new EnumIntPreference<>("map_markers_mode", MapMarkersMode.TOOLBAR, MapMarkersMode.values()); diff --git a/OsmAnd/src/net/osmand/plus/views/controls/SwipeDismissListViewTouchListener.java b/OsmAnd/src/net/osmand/plus/views/controls/SwipeDismissListViewTouchListener.java index 2e8b3c84eb..ecc0171748 100644 --- a/OsmAnd/src/net/osmand/plus/views/controls/SwipeDismissListViewTouchListener.java +++ b/OsmAnd/src/net/osmand/plus/views/controls/SwipeDismissListViewTouchListener.java @@ -715,7 +715,7 @@ public class SwipeDismissListViewTouchListener implements View.OnTouchListener { } if (mSwiping) { - mSwipeDownView.setTranslationX(deltaX); + ViewCompat.setTranslationX(mSwipeDownView, deltaX); ViewCompat.setAlpha(mSwipeDownView, Math.max(0f, Math.min(1f, 1f - 2f * Math.abs(deltaX) / mViewWidth))); return true; @@ -815,7 +815,7 @@ public class SwipeDismissListViewTouchListener implements View.OnTouchListener { ViewGroup.LayoutParams lp; for (PendingDismissData pendingDismiss : mPendingDismisses) { ViewCompat.setAlpha(pendingDismiss.view, 1f); - pendingDismiss.view.setTranslationX(0); + ViewCompat.setTranslationX(pendingDismiss.view, 0); lp = pendingDismiss.childView.getLayoutParams(); lp.height = originalLayoutHeight; pendingDismiss.childView.setLayoutParams(lp);