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
2024-10-15 14:33:14 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
64cb83a9a411d3c4b4d336245082469c2b382c77
64cb83a9
1 parent
23c6e903
ccms changes
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/activities/ContextualActivity.java
warply_android_sdk/src/main/res/values/strings.xml
warply_android_sdk/build.gradle
View file @
64cb83a
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.5.4r3
6
'
PUBLISH_VERSION
=
'4.5.5.4r3
7
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/ContextualActivity.java
View file @
64cb83a
...
...
@@ -162,6 +162,11 @@ public class ContextualActivity extends Activity implements View.OnClickListener
}
private
void
showActivationDialog
()
{
if
(
mCCMS
.
getEligibleAssets
()
!=
null
&&
mCCMS
.
getEligibleAssets
().
size
()
==
1
)
{
askActivateDialog
(
mCCMS
.
getEligibleAssets
().
get
(
0
));
return
;
}
final
BottomSheetDialog
bottomSheetDialog
=
new
BottomSheetDialog
(
this
);
bottomSheetDialog
.
setContentView
(
R
.
layout
.
dl_share
);
TextView
tvHeader
=
bottomSheetDialog
.
findViewById
(
R
.
id
.
tv_sender_value
);
...
...
@@ -183,7 +188,7 @@ public class ContextualActivity extends Activity implements View.OnClickListener
TextView
tv
=
(
TextView
)
view
;
mSender
=
tv
.
getText
().
toString
();
bottomSheetDialog
.
dismiss
();
askActivateDialog
();
askActivateDialog
(
mSender
);
});
parent
.
addView
(
v
,
0
,
new
ViewGroup
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
...
...
@@ -232,11 +237,11 @@ public class ContextualActivity extends Activity implements View.OnClickListener
// }).start();
}
private
void
askActivateDialog
()
{
private
void
askActivateDialog
(
String
msisdn
)
{
if
(!
isFinishing
())
{
mAlertDialogAskActivate
=
new
AlertDialog
.
Builder
(
this
)
.
setTitle
(
R
.
string
.
cos_dlg_activate_telco_title
)
.
setMessage
(
R
.
string
.
cos_dlg_activate_telco_subtitle
)
.
setMessage
(
String
.
format
(
getString
(
R
.
string
.
cos_dlg_activate_telco_subtitle2
),
msisdn
)
)
.
setPositiveButton
(
R
.
string
.
cos_dlg_positive_button
,
(
dialogPositive
,
whichPositive
)
->
{
activateGift
();
})
...
...
warply_android_sdk/src/main/res/values/strings.xml
View file @
64cb83a
...
...
@@ -125,6 +125,7 @@
<string
name=
"cos_dlg_success_couponset_subtitle"
>
Το κουπόνι σου έχει ενεργοποιηθεί και βρίσκεται στην ενότητα My Rewards.
</string>
<string
name=
"cos_dlg_activate_telco_title"
>
Ενεργοποίηση υπηρεσίας
</string>
<string
name=
"cos_dlg_activate_telco_subtitle"
>
Θέλετε να γίνει ενεργοποίηση στο Κινητό μου;
</string>
<string
name=
"cos_dlg_activate_telco_subtitle2"
>
Θέλετε να γίνει ενεργοποίηση στο %1$s;
</string>
<string
name=
"cos_dlg_activate_success_title"
>
Το αίτημά σου ολοκληρώθηκε επιτυχώς!
</string>
<string
name=
"cos_dlg_activate_success_subtitle"
>
Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου.
</string>
<string
name=
"cos_expired_coupon_label"
>
Εκπτωτικό κουπόνι
</string>
...
...
Please
register
or
login
to post a comment