Showing
7 changed files
with
10 additions
and
6 deletions
This diff is collapsed. Click to expand it.
... | @@ -274,7 +274,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie | ... | @@ -274,7 +274,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie |
274 | return; | 274 | return; |
275 | } | 275 | } |
276 | if (view.getId() == R.id.cl_market_inner) { | 276 | if (view.getId() == R.id.cl_market_inner) { |
277 | - if (countValue > 0) { | 277 | +// if (countValue > 0) { |
278 | WarplyAnalyticsManager.logTrackersEvent(this, "click", ("LoyaltyWalletScreen") | 278 | WarplyAnalyticsManager.logTrackersEvent(this, "click", ("LoyaltyWalletScreen") |
279 | .concat(":") | 279 | .concat(":") |
280 | .concat("MarketBanner")); | 280 | .concat("MarketBanner")); |
... | @@ -284,7 +284,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie | ... | @@ -284,7 +284,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie |
284 | EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent)); | 284 | EventBus.getDefault().post(new WarplyEventBusManager(analyticsEvent)); |
285 | Intent intent = new Intent(LoyaltyWallet.this, LoyaltyMarketAnalysisActivity.class); | 285 | Intent intent = new Intent(LoyaltyWallet.this, LoyaltyMarketAnalysisActivity.class); |
286 | startActivity(intent); | 286 | startActivity(intent); |
287 | - } | 287 | +// } |
288 | return; | 288 | return; |
289 | } | 289 | } |
290 | if (view.getId() == R.id.cl_mygifts) { | 290 | if (view.getId() == R.id.cl_mygifts) { |
... | @@ -391,7 +391,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie | ... | @@ -391,7 +391,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie |
391 | if (mUnifiedCoupons != null && mUnifiedCoupons.size() > 0) { | 391 | if (mUnifiedCoupons != null && mUnifiedCoupons.size() > 0) { |
392 | ArrayList<UnifiedCoupon> unilist = new ArrayList<UnifiedCoupon>(); | 392 | ArrayList<UnifiedCoupon> unilist = new ArrayList<UnifiedCoupon>(); |
393 | for (UnifiedCoupon unicpn : mUnifiedCoupons) { | 393 | for (UnifiedCoupon unicpn : mUnifiedCoupons) { |
394 | - SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm"); | 394 | + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); |
395 | Date newDate = new Date(); | 395 | Date newDate = new Date(); |
396 | try { | 396 | try { |
397 | newDate = simpleDateFormat.parse(unicpn.getCreated()); | 397 | newDate = simpleDateFormat.parse(unicpn.getCreated()); |
... | @@ -644,7 +644,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie | ... | @@ -644,7 +644,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie |
644 | mUnifiedCouponsAll = result; | 644 | mUnifiedCouponsAll = result; |
645 | ArrayList<UnifiedCoupon> cpnlist = new ArrayList<UnifiedCoupon>(); | 645 | ArrayList<UnifiedCoupon> cpnlist = new ArrayList<UnifiedCoupon>(); |
646 | for (UnifiedCoupon cpn : result) { | 646 | for (UnifiedCoupon cpn : result) { |
647 | - if (cpn.getStatus().equals("active")) { | 647 | + if (cpn.getStatus().trim().equals("active")) { |
648 | cpnlist.add(cpn); | 648 | cpnlist.add(cpn); |
649 | } | 649 | } |
650 | } | 650 | } | ... | ... |
... | @@ -95,7 +95,7 @@ public class MarketCouponAdapter extends RecyclerView.Adapter<MarketCouponAdapte | ... | @@ -95,7 +95,7 @@ public class MarketCouponAdapter extends RecyclerView.Adapter<MarketCouponAdapte |
95 | for (Coupon item : couponItem.getCoupons()) { | 95 | for (Coupon item : couponItem.getCoupons()) { |
96 | if (item.getStatus() == 1) { | 96 | if (item.getStatus() == 1) { |
97 | count++; | 97 | count++; |
98 | - SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm"); | 98 | + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); |
99 | Date newDate = new Date(); | 99 | Date newDate = new Date(); |
100 | try { | 100 | try { |
101 | newDate = simpleDateFormat.parse(item.getExpiration()); | 101 | newDate = simpleDateFormat.parse(item.getExpiration()); |
... | @@ -110,7 +110,7 @@ public class MarketCouponAdapter extends RecyclerView.Adapter<MarketCouponAdapte | ... | @@ -110,7 +110,7 @@ public class MarketCouponAdapter extends RecyclerView.Adapter<MarketCouponAdapte |
110 | Collections.sort(couponList, (coupon1, coupon2) -> coupon1.getExpirationDate().compareTo(coupon2.getExpirationDate())); | 110 | Collections.sort(couponList, (coupon1, coupon2) -> coupon1.getExpirationDate().compareTo(coupon2.getExpirationDate())); |
111 | 111 | ||
112 | if (couponList != null && couponList.size() > 0) { | 112 | if (couponList != null && couponList.size() > 0) { |
113 | - SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm"); | 113 | + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); |
114 | Date newDate = new Date(); | 114 | Date newDate = new Date(); |
115 | try { | 115 | try { |
116 | newDate = simpleDateFormat.parse(couponList.get(0).getExpiration()); | 116 | newDate = simpleDateFormat.parse(couponList.get(0).getExpiration()); | ... | ... |
... | @@ -93,6 +93,7 @@ | ... | @@ -93,6 +93,7 @@ |
93 | android:layout_width="0dp" | 93 | android:layout_width="0dp" |
94 | android:layout_height="wrap_content" | 94 | android:layout_height="wrap_content" |
95 | android:maxLines="3" | 95 | android:maxLines="3" |
96 | + android:ellipsize="end" | ||
96 | android:textColor="@color/cos_light_black" | 97 | android:textColor="@color/cos_light_black" |
97 | android:textSize="12sp" | 98 | android:textSize="12sp" |
98 | app:layout_constraintBottom_toBottomOf="parent" | 99 | app:layout_constraintBottom_toBottomOf="parent" | ... | ... |
... | @@ -87,6 +87,7 @@ | ... | @@ -87,6 +87,7 @@ |
87 | android:layout_width="0dp" | 87 | android:layout_width="0dp" |
88 | android:layout_height="wrap_content" | 88 | android:layout_height="wrap_content" |
89 | android:maxLines="3" | 89 | android:maxLines="3" |
90 | + android:ellipsize="end" | ||
90 | android:textColor="@color/cos_light_black" | 91 | android:textColor="@color/cos_light_black" |
91 | android:textSize="12sp" | 92 | android:textSize="12sp" |
92 | app:layout_constraintBottom_toBottomOf="parent" | 93 | app:layout_constraintBottom_toBottomOf="parent" | ... | ... |
... | @@ -91,6 +91,7 @@ | ... | @@ -91,6 +91,7 @@ |
91 | android:layout_marginStart="8dp" | 91 | android:layout_marginStart="8dp" |
92 | android:layout_marginEnd="16dp" | 92 | android:layout_marginEnd="16dp" |
93 | android:maxLines="3" | 93 | android:maxLines="3" |
94 | + android:ellipsize="end" | ||
94 | android:textColor="@color/cos_light_black" | 95 | android:textColor="@color/cos_light_black" |
95 | android:textSize="12sp" | 96 | android:textSize="12sp" |
96 | app:layout_constraintBottom_toBottomOf="parent" | 97 | app:layout_constraintBottom_toBottomOf="parent" | ... | ... |
... | @@ -169,6 +169,7 @@ | ... | @@ -169,6 +169,7 @@ |
169 | <string name="cos_coupon_date_limit2">%1$s</string> | 169 | <string name="cos_coupon_date_limit2">%1$s</string> |
170 | <string name="cos_for_you_all">Μέχρι τώρα έχεις κερδίσει %1$s€ στο For You!</string> | 170 | <string name="cos_for_you_all">Μέχρι τώρα έχεις κερδίσει %1$s€ στο For You!</string> |
171 | <string name="cos_supermarket_win">Έχεις κερδίσει %1$s€ με τα\nSuperMarket Deals!</string> | 171 | <string name="cos_supermarket_win">Έχεις κερδίσει %1$s€ με τα\nSuperMarket Deals!</string> |
172 | + <string name="cos_supermarket_history">Μέχρι τώρα έχεις κερδίσει %1$s€ σε προσφορές από %2$s κουπόνια!</string> | ||
172 | 173 | ||
173 | <string-array name="coupons_array"> | 174 | <string-array name="coupons_array"> |
174 | <item>Κουπόνια</item> | 175 | <item>Κουπόνια</item> | ... | ... |
-
Please register or login to post a comment