Panagiotis Triantafyllou

fixes

......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.4-cosbeta59'
PUBLISH_VERSION = '4.5.4-cosbeta60'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
......@@ -221,9 +221,16 @@ public class CouponInfoActivity extends Activity implements View.OnClickListener
mLlTerms.setOnClickListener(this);
String tempCoupon = mCoupon.getCoupon();
int result = 0;
for (int i = 0; i < (12 - mCoupon.getCoupon().length()); i++) {
tempCoupon += "0";
}
for (int i = mCoupon.getCoupon().length() - 1; i >= 0; i--) {
result = result + Integer.parseInt(String.valueOf((mCoupon.getCoupon()).charAt(i))) * (1 + (2 * (i % 2)));
}
tempCoupon = tempCoupon + (10 - (result % 10)) % 10;
createBarcodeBitmap(tempCoupon);
}
......
......@@ -161,6 +161,8 @@ public class TelcoActivity extends Activity implements View.OnClickListener {
private void showActivationDialog() {
final BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(this);
bottomSheetDialog.setContentView(R.layout.dl_share);
TextView tvHeader = bottomSheetDialog.findViewById(R.id.tv_sender_value);
tvHeader.setText(R.string.cos_coupon_share_telco);
LinearLayout parent = bottomSheetDialog.findViewById(R.id.ll_share_dialog_view_inner);
ImageView dialogClose = (ImageView) bottomSheetDialog.findViewById(R.id.iv_sender_list_close);
......
......@@ -60,7 +60,7 @@ public class WarplyHealthService extends Service implements SensorEventListener
private final int ACCEL_RING_SIZE = 50;
private final int VEL_RING_SIZE = 10;
// change this threshold according to your sensitivity preferences
private final float STEP_THRESHOLD = 20f;
private final float STEP_THRESHOLD = 10f; // default 40, cosmote default 20
private final int STEP_DELAY_NS = 250000000;
private int accelRingCounter = 0;
private float[] accelRingX = new float[ACCEL_RING_SIZE];
......@@ -101,7 +101,7 @@ public class WarplyHealthService extends Service implements SensorEventListener
b.setDefaults(Notification.DEFAULT_VIBRATE | Notification.DEFAULT_LIGHTS);
b.setChannelId(STEPS_CHANNEL_ID);
b.setContentTitle(getString(R.string.cos_steps_for_good_notification_title));
b.setContentText("Subtitle");
b.setContentText(getString(R.string.cos_steps_for_good_notification_subtitle));
b.setContentIntent(pbIntent);
b.setAutoCancel(true);
b.setOngoing(true);
......
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/cos_grey10" />
<corners android:radius="7dp" />
</shape>
</item>
<item
android:bottom="2dp"
android:left="0dp"
android:right="0dp"
android:top="0dp">
<shape android:shape="rectangle">
<gradient
android:endColor="@color/cos_skyblue"
android:startColor="@color/cos_green9"
android:type="linear" />
<corners android:radius="7dp" />
</shape>
</item>
</layer-list>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:topLeftRadius="30dp" />
<solid android:color="@color/cos_grey5" />
</shape>
</item>
</layer-list>
\ No newline at end of file
......@@ -43,7 +43,7 @@
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/shape_cos_loyalty"
android:background="@drawable/shape_cos_loyalty_no_border"
android:orientation="vertical">
<LinearLayout
......
......@@ -43,7 +43,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/cl_more_header"
android:background="@drawable/shape_cos_loyalty"
android:background="@drawable/shape_cos_loyalty_no_border"
android:orientation="vertical">
<ScrollView
......
......@@ -61,4 +61,5 @@
<color name="cos_green10">#73CA34</color>
<color name="cos_blue5">#0D81B8</color>
<color name="cos_grey9">#757575</color>
<color name="cos_grey10">#53626E</color>
</resources>
\ No newline at end of file
......
......@@ -133,6 +133,8 @@
<string name="cos_empty_expired_coupons">Δεν έχεις εξαργυρώσει ακόμη κουπόνια</string>
<string name="cos_dlg_pacing_goal">Πέτυχες το στόχο του μήνα! Διάλεξε το δώρο που επιθυμείς να ενεργοποιήσεις!</string>
<string name="cos_mfy_other">ΆΛΛΕΣ</string>
<string name="cos_coupon_share_telco">Επιλογή σύνδεσης</string>
<string name="cos_steps_for_good_notification_subtitle">Περπάτησε κάθε μέρα περισσότερο για να ολοκληρώσεις το στόχο του μήνα και να ξεκλειδώσεις μοναδικές προσφορές!</string>
<string-array name="coupons_array">
<item>Κουπόνια</item>
......