Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishna Vemulavada
/
vera_2.1_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0a22e23d
authored
Sep 27, 2019
by
Krishna Vemulawada
Browse files
Options
_('Browse Files')
Download
Plain Diff
choose design
parents
3584d6e3
2174f53d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
0 deletions
app/src/main/java/com/vsoft/vera/adapters/ChatMessageAdapter.java
app/src/main/java/com/vsoft/vera/utils/Constants.java
app/src/main/res/values/strings.xml
app/src/vportal/res/layout/activity_login_view.xml
app/src/main/java/com/vsoft/vera/adapters/ChatMessageAdapter.java
View file @
0a22e23d
...
...
@@ -448,6 +448,7 @@ public class ChatMessageAdapter extends RecyclerView.Adapter<ChatMessageAdapter.
webIntent
.
putExtra
(
Constants
.
URL_STRING
,
url
);
webIntent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
mContext
.
startActivity
(
webIntent
);
}
});
}
...
...
app/src/main/java/com/vsoft/vera/utils/Constants.java
View file @
0a22e23d
...
...
@@ -39,6 +39,7 @@ public class Constants {
public
static
final
String
DATA_KEY_HR_CASE_TITLE
=
"hr_case_title"
;
public
static
final
String
DATA_KEY_HR_CASE_ITEM_DESCRIPTION
=
"catalogue_item_des"
;
public
static
final
String
DATA_KEY_HR_CASE_ITEM_SHORT_DESCRIPTION
=
"catalogue_item_short_des"
;
public
static
final
String
TWILIO_VALIDATION_KEY
=
"vt1i0ZXx7ORYK7Kv7ktKmqcorqSKw6dN"
;
/**
* Broadcast custom intent
...
...
@@ -77,6 +78,8 @@ public class Constants {
public
static
final
String
URL_PARAM_FILE_NAME
=
"file_name"
;
public
static
final
String
URL_PARAM_SYS_ID
=
"sys_id"
;
public
static
final
String
URL_PARAM_OPENED_BY
=
"opened_by"
;
public
static
String
URL_PHONE_NUMBER_VERIFICATION
=
"https://api.authy.com/protected/json/phones/verification/start?api_key="
+
Constants
.
TWILIO_VALIDATION_KEY
;
public
static
String
URL_PHONE_NUMBER_VALIDATION
=
"https://api.authy.com/protected/json/phones/verification/check?api_key="
+
Constants
.
TWILIO_VALIDATION_KEY
;
/**
* Request Code
...
...
app/src/main/res/values/strings.xml
View file @
0a22e23d
...
...
@@ -47,6 +47,7 @@
<!--Login Screen-->
<string
name=
"prompt_relogin_login_expired"
>
Login expired, please login again
…
</string>
<string
name=
"login_screen_login_string"
>
Login
</string>
<string
name=
"login_screen_login_string_twillio"
>
Login With Twillio
</string>
<string
name=
"login_screen_submit_string"
>
Submit
</string>
<string
name=
"login_screen_logging_in_loading_string"
>
Logging in
…
</string>
<string
name=
"login_screen_getting_user_detail_loading_string"
>
Getting user details
…
</string>
...
...
app/src/vportal/res/layout/activity_login_view.xml
View file @
0a22e23d
...
...
@@ -107,6 +107,24 @@
android:text=
"@string/login_screen_login_string"
android:textColor=
"@android:color/white"
android:textSize=
"@dimen/large_text_size"
/>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"(or)"
android:gravity=
"center"
android:textSize=
"30dp"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/login_screen_login_text_view_twillio"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/normal_margin"
android:layout_marginLeft=
"@dimen/extra_large_margin"
android:layout_marginRight=
"@dimen/extra_large_margin"
android:layout_marginTop=
"30dp"
android:background=
"@drawable/login_bg"
android:gravity=
"center"
android:paddingBottom=
"@dimen/normal_margin"
android:paddingTop=
"@dimen/normal_margin"
android:text=
"@string/login_screen_login_string_twillio"
android:textColor=
"@android:color/white"
android:textSize=
"@dimen/large_text_size"
/>
</LinearLayout>
</LinearLayout>
</ScrollView>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment