Panagiotis Triantafyllou

clickable link in terms

......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.4.6rc43'
PUBLISH_VERSION = '4.5.4.6rc44'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
......@@ -10,6 +10,7 @@ import android.os.Build;
import android.os.Bundle;
import android.text.Html;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
......@@ -239,6 +240,7 @@ public class CouponInfoActivity extends Activity implements View.OnClickListener
} else {
mTvTermsValue.setText(Html.fromHtml(mCouponset.getTerms()));
}
mTvTermsValue.setMovementMethod(LinkMovementMethod.getInstance());
}
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm");
......
......@@ -6,6 +6,7 @@ import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
......@@ -177,8 +178,10 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
mTvCouponsetTitle.setText(mCouponset.getName());
mTvCouponsetSubtitle.setText(Html.fromHtml(mCouponset.getDescription()));
mTvCouponsetSubtitle.setMovementMethod(LinkMovementMethod.getInstance());
mLlTerms.setOnClickListener(this);
mTvTermsValue.setText(Html.fromHtml(mCouponset.getTerms()));
mTvTermsValue.setMovementMethod(LinkMovementMethod.getInstance());
if (!TextUtils.isEmpty(mCouponset.getImgPreview())) {
Glide.with(this)
......