Showing
6 changed files
with
24 additions
and
13 deletions
| ... | @@ -5,7 +5,7 @@ android.buildFeatures.buildConfig = true | ... | @@ -5,7 +5,7 @@ android.buildFeatures.buildConfig = true |
| 5 | 5 | ||
| 6 | ext { | 6 | ext { |
| 7 | PUBLISH_GROUP_ID = 'ly.warp' | 7 | PUBLISH_GROUP_ID = 'ly.warp' |
| 8 | - PUBLISH_VERSION = '4.5.5.6deh6' | 8 | + PUBLISH_VERSION = '4.5.5.6deh7' |
| 9 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 9 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
| 10 | } | 10 | } |
| 11 | 11 | ... | ... |
| ... | @@ -167,13 +167,13 @@ public class HomeActivity extends Activity implements View.OnClickListener, Coup | ... | @@ -167,13 +167,13 @@ public class HomeActivity extends Activity implements View.OnClickListener, Coup |
| 167 | 167 | ||
| 168 | @Override | 168 | @Override |
| 169 | public void onCouponsetClick(Couponset couponset, int position) { | 169 | public void onCouponsetClick(Couponset couponset, int position) { |
| 170 | -// if (!couponset.isLocked()) { | 170 | + if (!couponset.isLocked()) { |
| 171 | Intent myIntent = new Intent(HomeActivity.this, SingleCouponsetActivity.class); | 171 | Intent myIntent = new Intent(HomeActivity.this, SingleCouponsetActivity.class); |
| 172 | myIntent.putExtra(SingleCouponsetActivity.EXTRA_OFFER_ITEM, (Parcelable) couponset); | 172 | myIntent.putExtra(SingleCouponsetActivity.EXTRA_OFFER_ITEM, (Parcelable) couponset); |
| 173 | startActivity(myIntent); | 173 | startActivity(myIntent); |
| 174 | -// } else { | 174 | + } else { |
| 175 | -// //TODO: make something | 175 | + //TODO: make something |
| 176 | -// } | 176 | + } |
| 177 | } | 177 | } |
| 178 | 178 | ||
| 179 | // =========================================================== | 179 | // =========================================================== | ... | ... |
| ... | @@ -123,11 +123,11 @@ public class CouponsetAdapter extends RecyclerView.Adapter<CouponsetAdapter.Coup | ... | @@ -123,11 +123,11 @@ public class CouponsetAdapter extends RecyclerView.Adapter<CouponsetAdapter.Coup |
| 123 | ivLogo.setVisibility(View.GONE); | 123 | ivLogo.setVisibility(View.GONE); |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | -// if (couponset.isLocked()) { | 126 | + if (couponset.isLocked()) { |
| 127 | -// ivLogo.setVisibility(View.VISIBLE); | 127 | + ivLock.setVisibility(View.VISIBLE); |
| 128 | -// } else { | 128 | + } else { |
| 129 | -// ivLogo.setVisibility(View.GONE); | 129 | + ivLock.setVisibility(View.GONE); |
| 130 | -// } | 130 | + } |
| 131 | } | 131 | } |
| 132 | 132 | ||
| 133 | private String formatValidityDate(String endDate) { | 133 | private String formatValidityDate(String endDate) { | ... | ... |
5.17 KB
| ... | @@ -26,6 +26,17 @@ | ... | @@ -26,6 +26,17 @@ |
| 26 | android:textSize="16sp" | 26 | android:textSize="16sp" |
| 27 | tools:text="17,95€" /> | 27 | tools:text="17,95€" /> |
| 28 | 28 | ||
| 29 | + <ImageView | ||
| 30 | + android:id="@+id/iv_lock" | ||
| 31 | + android:layout_width="24dp" | ||
| 32 | + android:layout_height="24dp" | ||
| 33 | + android:layout_alignParentStart="true" | ||
| 34 | + android:layout_marginStart="8dp" | ||
| 35 | + android:layout_marginTop="88dp" | ||
| 36 | + android:scaleType="centerInside" | ||
| 37 | + android:src="@drawable/demo_lock" | ||
| 38 | + android:visibility="gone"/> | ||
| 39 | + | ||
| 29 | <androidx.constraintlayout.widget.ConstraintLayout | 40 | <androidx.constraintlayout.widget.ConstraintLayout |
| 30 | android:layout_width="match_parent" | 41 | android:layout_width="match_parent" |
| 31 | android:layout_height="match_parent" | 42 | android:layout_height="match_parent" | ... | ... |
| ... | @@ -28,13 +28,13 @@ | ... | @@ -28,13 +28,13 @@ |
| 28 | 28 | ||
| 29 | <ImageView | 29 | <ImageView |
| 30 | android:id="@+id/iv_lock" | 30 | android:id="@+id/iv_lock" |
| 31 | - android:layout_width="20dp" | 31 | + android:layout_width="24dp" |
| 32 | - android:layout_height="20dp" | 32 | + android:layout_height="24dp" |
| 33 | android:layout_alignParentStart="true" | 33 | android:layout_alignParentStart="true" |
| 34 | android:layout_marginStart="8dp" | 34 | android:layout_marginStart="8dp" |
| 35 | android:layout_marginTop="88dp" | 35 | android:layout_marginTop="88dp" |
| 36 | android:scaleType="centerInside" | 36 | android:scaleType="centerInside" |
| 37 | - android:src="@drawable/demo_avis" | 37 | + android:src="@drawable/demo_lock" |
| 38 | android:visibility="gone"/> | 38 | android:visibility="gone"/> |
| 39 | 39 | ||
| 40 | <androidx.constraintlayout.widget.ConstraintLayout | 40 | <androidx.constraintlayout.widget.ConstraintLayout | ... | ... |
-
Please register or login to post a comment