Commit 0a22e23d by Krishna Vemulawada

choose design

parents 3584d6e3 2174f53d
...@@ -448,6 +448,7 @@ public class ChatMessageAdapter extends RecyclerView.Adapter<ChatMessageAdapter. ...@@ -448,6 +448,7 @@ public class ChatMessageAdapter extends RecyclerView.Adapter<ChatMessageAdapter.
webIntent.putExtra(Constants.URL_STRING, url); webIntent.putExtra(Constants.URL_STRING, url);
webIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); webIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(webIntent); mContext.startActivity(webIntent);
} }
}); });
} }
......
...@@ -39,6 +39,7 @@ public class Constants { ...@@ -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_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_DESCRIPTION = "catalogue_item_des";
public static final String DATA_KEY_HR_CASE_ITEM_SHORT_DESCRIPTION = "catalogue_item_short_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 * Broadcast custom intent
...@@ -77,6 +78,8 @@ public class Constants { ...@@ -77,6 +78,8 @@ public class Constants {
public static final String URL_PARAM_FILE_NAME = "file_name"; 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_SYS_ID = "sys_id";
public static final String URL_PARAM_OPENED_BY = "opened_by"; 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 * Request Code
......
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
<!--Login Screen--> <!--Login Screen-->
<string name="prompt_relogin_login_expired">Login expired, please login again&#8230;</string> <string name="prompt_relogin_login_expired">Login expired, please login again&#8230;</string>
<string name="login_screen_login_string">Login</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_submit_string">Submit</string>
<string name="login_screen_logging_in_loading_string">Logging in&#8230;</string> <string name="login_screen_logging_in_loading_string">Logging in&#8230;</string>
<string name="login_screen_getting_user_detail_loading_string">Getting user details&#8230;</string> <string name="login_screen_getting_user_detail_loading_string">Getting user details&#8230;</string>
......
...@@ -107,6 +107,24 @@ ...@@ -107,6 +107,24 @@
android:text="@string/login_screen_login_string" android:text="@string/login_screen_login_string"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:textSize="@dimen/large_text_size" /> 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>
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment