Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2023-03-14 18:35:10 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
52be25973aa639e621b94d42cb52e25d04ebe977
52be2597
1 parent
d424a5c1
clickable link in terms
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponInfoActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponsetInfoActivity.java
warply_android_sdk/build.gradle
View file @
52be259
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4.6rc4
3
'
PUBLISH_VERSION
=
'4.5.4.6rc4
4
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponInfoActivity.java
View file @
52be259
...
...
@@ -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"
);
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponsetInfoActivity.java
View file @
52be259
...
...
@@ -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
)
...
...
Please
register
or
login
to post a comment