diff --git a/android/res/layout/pager_fragment_all_pass_subscription.xml b/android/res/layout/pager_fragment_all_pass_subscription.xml
index f95bdf3389..fa5b014779 100644
--- a/android/res/layout/pager_fragment_all_pass_subscription.xml
+++ b/android/res/layout/pager_fragment_all_pass_subscription.xml
@@ -1,114 +1,108 @@
-
+
+
-
-
+
+
+
+
+
-
+
-
+
-
-
+
+ android:layout_height="@dimen/subscription_view_pager_height"
+ android:layout_marginTop="@dimen/auth_dialog_padding_top"
+ android:overScrollMode="never"
+ app:autoScroll="true"
+ app:scrollPeriod="4000" />
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ android:layout_height="wrap_content"
+ android:layout_marginStart="@dimen/margin_base_plus"
+ android:layout_marginTop="@dimen/nav_street_height"
+ android:layout_marginEnd="@dimen/margin_base_plus"
+ app:buttonBackground="@drawable/button_accent"
+ app:saleBackground="@drawable/all_pass_sale_bg"
+ app:saleTextColor="@color/tips_and_triks_primary_text_night"
+ app:showSale="true" />
+
+
+
+
+
diff --git a/android/src/com/mapswithme/maps/purchase/AllPassSubscriptionFragment.java b/android/src/com/mapswithme/maps/purchase/AllPassSubscriptionFragment.java
index e28692f8f4..0b55d3af9d 100644
--- a/android/src/com/mapswithme/maps/purchase/AllPassSubscriptionFragment.java
+++ b/android/src/com/mapswithme/maps/purchase/AllPassSubscriptionFragment.java
@@ -38,7 +38,7 @@ public class AllPassSubscriptionFragment extends Fragment
}
@NonNull
- public static AllPassSubscriptionFragment newFragment(int index)
+ static Fragment newInstance(int index)
{
AllPassSubscriptionFragment fragment = new AllPassSubscriptionFragment();
Bundle args = new Bundle();
diff --git a/android/src/com/mapswithme/maps/purchase/AllPassSubscriptionPage.java b/android/src/com/mapswithme/maps/purchase/AllPassSubscriptionPage.java
index 1173a53e48..11fa218432 100644
--- a/android/src/com/mapswithme/maps/purchase/AllPassSubscriptionPage.java
+++ b/android/src/com/mapswithme/maps/purchase/AllPassSubscriptionPage.java
@@ -17,7 +17,7 @@ public enum AllPassSubscriptionPage
@StringRes
private final int mDescriptionId;
- AllPassSubscriptionPage(int titleId, int descriptionId)
+ AllPassSubscriptionPage(@StringRes int titleId, @StringRes int descriptionId)
{
mTitleId = titleId;
mDescriptionId = descriptionId;
diff --git a/android/src/com/mapswithme/maps/purchase/AllPassSubscriptionPagerFragment.java b/android/src/com/mapswithme/maps/purchase/AllPassSubscriptionPagerFragment.java
index 6d111f76a8..343d12f970 100644
--- a/android/src/com/mapswithme/maps/purchase/AllPassSubscriptionPagerFragment.java
+++ b/android/src/com/mapswithme/maps/purchase/AllPassSubscriptionPagerFragment.java
@@ -115,7 +115,7 @@ public class AllPassSubscriptionPagerFragment extends BaseMwmFragment
@Override
public Fragment getItem(int i)
{
- return AllPassSubscriptionFragment.newFragment(i);
+ return AllPassSubscriptionFragment.newInstance(i);
}
@Override
diff --git a/android/src/com/mapswithme/maps/purchase/SubsButtonEntity.java b/android/src/com/mapswithme/maps/purchase/SubsButtonEntity.java
deleted file mode 100644
index c95b756836..0000000000
--- a/android/src/com/mapswithme/maps/purchase/SubsButtonEntity.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package com.mapswithme.maps.purchase;
-
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-
-public class SubsButtonEntity
-{
- @NonNull
- private final String mName;
-
- @NonNull
- private final String mPrice;
-
- @Nullable
- private final String mSale;
-
- SubsButtonEntity(@NonNull String name, @NonNull String price, @Nullable String sale)
- {
- mName = name;
- mPrice = price;
- mSale = sale;
- }
-
- SubsButtonEntity(@NonNull String name, @NonNull String price)
- {
- this(name, price, null);
- }
-
- @NonNull
- public String getName()
- {
- return mName;
- }
-
- @NonNull
- public String getPrice()
- {
- return mPrice;
- }
-
- @Nullable
- public String getSale()
- {
- return mSale;
- }
-}
diff --git a/android/src/com/mapswithme/maps/widget/DotPager.java b/android/src/com/mapswithme/maps/widget/DotPager.java
index ae925dadfa..a2ae3fa8bb 100644
--- a/android/src/com/mapswithme/maps/widget/DotPager.java
+++ b/android/src/com/mapswithme/maps/widget/DotPager.java
@@ -155,7 +155,9 @@ public class DotPager implements ViewPager.OnPageChangeListener
private final Context mContext;
@Nullable
private OnPageChangedListener mListener;
+ @DrawableRes
private int mActiveDotDrawableResId = R.drawable.news_marker_active;
+ @DrawableRes
private int mInactiveDotDrawableResId = R.drawable.news_marker_inactive;
public Builder(@NonNull Context context, @NonNull ViewPager pager, @NonNull PagerAdapter adapter)