diff --git a/android/app/src/main/java/app/organicmaps/ChartController.java b/android/app/src/main/java/app/organicmaps/ChartController.java index cd5ce84c8d..664bbfdfe7 100644 --- a/android/app/src/main/java/app/organicmaps/ChartController.java +++ b/android/app/src/main/java/app/organicmaps/ChartController.java @@ -126,7 +126,7 @@ public class ChartController implements OnChartValueSelectedListener, x.setGranularityEnabled(true); x.setTextColor(ThemeUtils.getColor(mContext, R.attr.elevationProfileAxisLabelColor)); x.setPosition(XAxis.XAxisPosition.BOTTOM); - x.setAxisLineColor(ThemeUtils.getColor(mContext, R.attr.dividerHorizontal)); + x.setAxisLineColor(ThemeUtils.getColor(mContext, androidx.appcompat.R.attr.dividerHorizontal)); x.setAxisLineWidth(mContext.getResources().getDimensionPixelSize(R.dimen.divider_height)); ValueFormatter xAxisFormatter = new AxisValueFormatter(mChart); x.setValueFormatter(xAxisFormatter); diff --git a/android/app/src/main/java/app/organicmaps/editor/AdvancedTimetableFragment.java b/android/app/src/main/java/app/organicmaps/editor/AdvancedTimetableFragment.java index 42b843b1b4..8adec6c59f 100644 --- a/android/app/src/main/java/app/organicmaps/editor/AdvancedTimetableFragment.java +++ b/android/app/src/main/java/app/organicmaps/editor/AdvancedTimetableFragment.java @@ -88,8 +88,8 @@ public class AdvancedTimetableFragment extends BaseMwmFragment private void setExampleDrawables(@DrawableRes int left, @DrawableRes int right) { - mExamplesTitle.setCompoundDrawablesRelativeWithIntrinsicBounds(Graphics.tint(requireActivity(), left, R.attr.colorAccent), null, - Graphics.tint(requireActivity(), right, R.attr.colorAccent), null); + mExamplesTitle.setCompoundDrawablesRelativeWithIntrinsicBounds(Graphics.tint(requireActivity(), left, androidx.appcompat.R.attr.colorAccent), null, + Graphics.tint(requireActivity(), right, androidx.appcompat.R.attr.colorAccent), null); } @Override diff --git a/android/app/src/main/java/app/organicmaps/maplayer/SearchWheel.java b/android/app/src/main/java/app/organicmaps/maplayer/SearchWheel.java index 9c24c5ba1a..d9e8e9e2d6 100644 --- a/android/app/src/main/java/app/organicmaps/maplayer/SearchWheel.java +++ b/android/app/src/main/java/app/organicmaps/maplayer/SearchWheel.java @@ -222,7 +222,7 @@ public class SearchWheel implements View.OnClickListener searchOption == null ? R.drawable.ic_routing_search_off : searchOption.mDrawableOff, - R.attr.colorAccent)); + androidx.appcompat.R.attr.colorAccent)); } @Override diff --git a/android/app/src/main/java/app/organicmaps/routing/RoutingBottomMenuController.java b/android/app/src/main/java/app/organicmaps/routing/RoutingBottomMenuController.java index 968b9147bb..d2ff7ab2b1 100644 --- a/android/app/src/main/java/app/organicmaps/routing/RoutingBottomMenuController.java +++ b/android/app/src/main/java/app/organicmaps/routing/RoutingBottomMenuController.java @@ -255,7 +255,7 @@ final class RoutingBottomMenuController implements View.OnClickListener UiUtils.show(mActionButton); Drawable icon = ContextCompat.getDrawable(mContext, R.drawable.ic_my_location); int colorAccent = ContextCompat.getColor(mContext, - UiUtils.getStyledResourceId(mContext, R.attr.colorAccent)); + UiUtils.getStyledResourceId(mContext, androidx.appcompat.R.attr.colorAccent)); mActionIcon.setImageDrawable(Graphics.tint(icon, colorAccent)); } else diff --git a/android/app/src/main/java/app/organicmaps/routing/TransitStepView.java b/android/app/src/main/java/app/organicmaps/routing/TransitStepView.java index cf30ba769d..4b9754ff95 100644 --- a/android/app/src/main/java/app/organicmaps/routing/TransitStepView.java +++ b/android/app/src/main/java/app/organicmaps/routing/TransitStepView.java @@ -110,7 +110,7 @@ public class TransitStepView extends View implements MultilineLayoutManager.Sque case RULER: return ThemeUtils.getColor(context, R.attr.transitRulerBackground); case INTERMEDIATE_POINT: - return ThemeUtils.getColor(context, R.attr.colorPrimary); + return ThemeUtils.getColor(context, androidx.appcompat.R.attr.colorPrimary); default: return info.getColor(); } diff --git a/android/app/src/main/java/app/organicmaps/search/SearchAdapter.java b/android/app/src/main/java/app/organicmaps/search/SearchAdapter.java index 518af9bc96..42967349a1 100644 --- a/android/app/src/main/java/app/organicmaps/search/SearchAdapter.java +++ b/android/app/src/main/java/app/organicmaps/search/SearchAdapter.java @@ -64,7 +64,7 @@ class SearchAdapter extends RecyclerView.Adapter