Showing
11 changed files
with
50 additions
and
5 deletions
... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' | ... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' |
2 | 2 | ||
3 | ext { | 3 | ext { |
4 | PUBLISH_GROUP_ID = 'ly.warp' | 4 | PUBLISH_GROUP_ID = 'ly.warp' |
5 | - PUBLISH_VERSION = '4.5.4-cosbeta59' | 5 | + PUBLISH_VERSION = '4.5.4-cosbeta60' |
6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
7 | } | 7 | } |
8 | 8 | ... | ... |
... | @@ -221,9 +221,16 @@ public class CouponInfoActivity extends Activity implements View.OnClickListener | ... | @@ -221,9 +221,16 @@ public class CouponInfoActivity extends Activity implements View.OnClickListener |
221 | mLlTerms.setOnClickListener(this); | 221 | mLlTerms.setOnClickListener(this); |
222 | 222 | ||
223 | String tempCoupon = mCoupon.getCoupon(); | 223 | String tempCoupon = mCoupon.getCoupon(); |
224 | + int result = 0; | ||
224 | for (int i = 0; i < (12 - mCoupon.getCoupon().length()); i++) { | 225 | for (int i = 0; i < (12 - mCoupon.getCoupon().length()); i++) { |
225 | tempCoupon += "0"; | 226 | tempCoupon += "0"; |
226 | } | 227 | } |
228 | + | ||
229 | + for (int i = mCoupon.getCoupon().length() - 1; i >= 0; i--) { | ||
230 | + result = result + Integer.parseInt(String.valueOf((mCoupon.getCoupon()).charAt(i))) * (1 + (2 * (i % 2))); | ||
231 | + } | ||
232 | + | ||
233 | + tempCoupon = tempCoupon + (10 - (result % 10)) % 10; | ||
227 | createBarcodeBitmap(tempCoupon); | 234 | createBarcodeBitmap(tempCoupon); |
228 | } | 235 | } |
229 | 236 | ... | ... |
... | @@ -161,6 +161,8 @@ public class TelcoActivity extends Activity implements View.OnClickListener { | ... | @@ -161,6 +161,8 @@ public class TelcoActivity extends Activity implements View.OnClickListener { |
161 | private void showActivationDialog() { | 161 | private void showActivationDialog() { |
162 | final BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(this); | 162 | final BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(this); |
163 | bottomSheetDialog.setContentView(R.layout.dl_share); | 163 | bottomSheetDialog.setContentView(R.layout.dl_share); |
164 | + TextView tvHeader = bottomSheetDialog.findViewById(R.id.tv_sender_value); | ||
165 | + tvHeader.setText(R.string.cos_coupon_share_telco); | ||
164 | LinearLayout parent = bottomSheetDialog.findViewById(R.id.ll_share_dialog_view_inner); | 166 | LinearLayout parent = bottomSheetDialog.findViewById(R.id.ll_share_dialog_view_inner); |
165 | 167 | ||
166 | ImageView dialogClose = (ImageView) bottomSheetDialog.findViewById(R.id.iv_sender_list_close); | 168 | ImageView dialogClose = (ImageView) bottomSheetDialog.findViewById(R.id.iv_sender_list_close); | ... | ... |
... | @@ -60,7 +60,7 @@ public class WarplyHealthService extends Service implements SensorEventListener | ... | @@ -60,7 +60,7 @@ public class WarplyHealthService extends Service implements SensorEventListener |
60 | private final int ACCEL_RING_SIZE = 50; | 60 | private final int ACCEL_RING_SIZE = 50; |
61 | private final int VEL_RING_SIZE = 10; | 61 | private final int VEL_RING_SIZE = 10; |
62 | // change this threshold according to your sensitivity preferences | 62 | // change this threshold according to your sensitivity preferences |
63 | - private final float STEP_THRESHOLD = 20f; | 63 | + private final float STEP_THRESHOLD = 10f; // default 40, cosmote default 20 |
64 | private final int STEP_DELAY_NS = 250000000; | 64 | private final int STEP_DELAY_NS = 250000000; |
65 | private int accelRingCounter = 0; | 65 | private int accelRingCounter = 0; |
66 | private float[] accelRingX = new float[ACCEL_RING_SIZE]; | 66 | private float[] accelRingX = new float[ACCEL_RING_SIZE]; |
... | @@ -101,7 +101,7 @@ public class WarplyHealthService extends Service implements SensorEventListener | ... | @@ -101,7 +101,7 @@ public class WarplyHealthService extends Service implements SensorEventListener |
101 | b.setDefaults(Notification.DEFAULT_VIBRATE | Notification.DEFAULT_LIGHTS); | 101 | b.setDefaults(Notification.DEFAULT_VIBRATE | Notification.DEFAULT_LIGHTS); |
102 | b.setChannelId(STEPS_CHANNEL_ID); | 102 | b.setChannelId(STEPS_CHANNEL_ID); |
103 | b.setContentTitle(getString(R.string.cos_steps_for_good_notification_title)); | 103 | b.setContentTitle(getString(R.string.cos_steps_for_good_notification_title)); |
104 | - b.setContentText("Subtitle"); | 104 | + b.setContentText(getString(R.string.cos_steps_for_good_notification_subtitle)); |
105 | b.setContentIntent(pbIntent); | 105 | b.setContentIntent(pbIntent); |
106 | b.setAutoCancel(true); | 106 | b.setAutoCancel(true); |
107 | b.setOngoing(true); | 107 | b.setOngoing(true); | ... | ... |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
3 | + <item> | ||
4 | + <shape android:shape="rectangle"> | ||
5 | + <solid android:color="@color/cos_grey10" /> | ||
6 | + <corners android:radius="7dp" /> | ||
7 | + </shape> | ||
8 | + </item> | ||
9 | + | ||
10 | + <item | ||
11 | + android:bottom="2dp" | ||
12 | + android:left="0dp" | ||
13 | + android:right="0dp" | ||
14 | + android:top="0dp"> | ||
15 | + <shape android:shape="rectangle"> | ||
16 | + <gradient | ||
17 | + android:endColor="@color/cos_skyblue" | ||
18 | + android:startColor="@color/cos_green9" | ||
19 | + android:type="linear" /> | ||
20 | + <corners android:radius="7dp" /> | ||
21 | + </shape> | ||
22 | + </item> | ||
23 | +</layer-list> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
3 | + <item> | ||
4 | + <shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
5 | + android:shape="rectangle"> | ||
6 | + <corners android:topLeftRadius="30dp" /> | ||
7 | + <solid android:color="@color/cos_grey5" /> | ||
8 | + </shape> | ||
9 | + </item> | ||
10 | +</layer-list> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -43,7 +43,7 @@ | ... | @@ -43,7 +43,7 @@ |
43 | <RelativeLayout | 43 | <RelativeLayout |
44 | android:layout_width="match_parent" | 44 | android:layout_width="match_parent" |
45 | android:layout_height="match_parent" | 45 | android:layout_height="match_parent" |
46 | - android:background="@drawable/shape_cos_loyalty" | 46 | + android:background="@drawable/shape_cos_loyalty_no_border" |
47 | android:orientation="vertical"> | 47 | android:orientation="vertical"> |
48 | 48 | ||
49 | <LinearLayout | 49 | <LinearLayout | ... | ... |
This diff is collapsed. Click to expand it.
... | @@ -43,7 +43,7 @@ | ... | @@ -43,7 +43,7 @@ |
43 | android:layout_width="match_parent" | 43 | android:layout_width="match_parent" |
44 | android:layout_height="match_parent" | 44 | android:layout_height="match_parent" |
45 | android:layout_below="@+id/cl_more_header" | 45 | android:layout_below="@+id/cl_more_header" |
46 | - android:background="@drawable/shape_cos_loyalty" | 46 | + android:background="@drawable/shape_cos_loyalty_no_border" |
47 | android:orientation="vertical"> | 47 | android:orientation="vertical"> |
48 | 48 | ||
49 | <ScrollView | 49 | <ScrollView | ... | ... |
... | @@ -61,4 +61,5 @@ | ... | @@ -61,4 +61,5 @@ |
61 | <color name="cos_green10">#73CA34</color> | 61 | <color name="cos_green10">#73CA34</color> |
62 | <color name="cos_blue5">#0D81B8</color> | 62 | <color name="cos_blue5">#0D81B8</color> |
63 | <color name="cos_grey9">#757575</color> | 63 | <color name="cos_grey9">#757575</color> |
64 | + <color name="cos_grey10">#53626E</color> | ||
64 | </resources> | 65 | </resources> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -133,6 +133,8 @@ | ... | @@ -133,6 +133,8 @@ |
133 | <string name="cos_empty_expired_coupons">Δεν έχεις εξαργυρώσει ακόμη κουπόνια</string> | 133 | <string name="cos_empty_expired_coupons">Δεν έχεις εξαργυρώσει ακόμη κουπόνια</string> |
134 | <string name="cos_dlg_pacing_goal">Πέτυχες το στόχο του μήνα! Διάλεξε το δώρο που επιθυμείς να ενεργοποιήσεις!</string> | 134 | <string name="cos_dlg_pacing_goal">Πέτυχες το στόχο του μήνα! Διάλεξε το δώρο που επιθυμείς να ενεργοποιήσεις!</string> |
135 | <string name="cos_mfy_other">ΆΛΛΕΣ</string> | 135 | <string name="cos_mfy_other">ΆΛΛΕΣ</string> |
136 | + <string name="cos_coupon_share_telco">Επιλογή σύνδεσης</string> | ||
137 | + <string name="cos_steps_for_good_notification_subtitle">Περπάτησε κάθε μέρα περισσότερο για να ολοκληρώσεις το στόχο του μήνα και να ξεκλειδώσεις μοναδικές προσφορές!</string> | ||
136 | 138 | ||
137 | <string-array name="coupons_array"> | 139 | <string-array name="coupons_array"> |
138 | <item>Κουπόνια</item> | 140 | <item>Κουπόνια</item> | ... | ... |
-
Please register or login to post a comment