Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
5c4bb503
Commit
5c4bb503
authored
Sep 02, 2018
by
divyanshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show menu in the toolbar for "terms and service" and "privacy policy".
parent
71ab8f68
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
36 additions
and
21 deletions
+36
-21
LoginFragment.kt
...t/rocket/android/authentication/login/ui/LoginFragment.kt
+3
-9
AuthenticationActivity.kt
...ocket/android/authentication/ui/AuthenticationActivity.kt
+15
-2
fragment_authentication_login_options.xml
...main/res/layout/fragment_authentication_login_options.xml
+5
-0
fragment_authentication_on_boarding.xml
...c/main/res/layout/fragment_authentication_on_boarding.xml
+4
-1
legal.xml
app/src/main/res/menu/legal.xml
+2
-2
strings.xml
app/src/main/res/values-de/strings.xml
+1
-1
strings.xml
app/src/main/res/values-es/strings.xml
+1
-1
strings.xml
app/src/main/res/values-fr/strings.xml
+1
-1
strings.xml
app/src/main/res/values-hi-rIN/strings.xml
+1
-1
strings.xml
app/src/main/res/values-pt-rBR/strings.xml
+1
-1
strings.xml
app/src/main/res/values-ru/strings.xml
+1
-1
strings.xml
app/src/main/res/values/strings.xml
+1
-1
No files found.
app/src/main/java/chat/rocket/android/authentication/login/ui/LoginFragment.kt
View file @
5c4bb503
...
@@ -277,16 +277,10 @@ class LoginFragment : Fragment(), LoginView {
...
@@ -277,16 +277,10 @@ class LoginFragment : Fragment(), LoginView {
override
fun
setupForgotPasswordView
()
{
override
fun
setupForgotPasswordView
()
{
ui
{
ui
{
val
reset
=
getString
(
R
.
string
.
msg_reset
)
text_forgot_your_password
.
text
=
String
.
format
(
getString
(
R
.
string
.
msg_forgot_password
))
val
forgotPassword
=
String
.
format
(
getString
(
R
.
string
.
msg_forgot_password
),
reset
)
text_forgot_your_password
.
setOnClickListener
{
presenter
.
forgotPassword
()
text_forgot_your_password
.
text
=
forgotPassword
val
resetListener
=
object
:
ClickableSpan
()
{
override
fun
onClick
(
view
:
View
)
=
presenter
.
forgotPassword
()
}
}
TextHelper
.
addLink
(
text_forgot_your_password
,
arrayOf
(
reset
),
arrayOf
(
resetListener
))
}
}
}
}
...
...
app/src/main/java/chat/rocket/android/authentication/ui/AuthenticationActivity.kt
View file @
5c4bb503
...
@@ -3,6 +3,8 @@ package chat.rocket.android.authentication.ui
...
@@ -3,6 +3,8 @@ package chat.rocket.android.authentication.ui
import
android.content.Context
import
android.content.Context
import
android.content.Intent
import
android.content.Intent
import
android.os.Bundle
import
android.os.Bundle
import
android.view.Menu
import
android.view.MenuItem
import
androidx.fragment.app.Fragment
import
androidx.fragment.app.Fragment
import
androidx.appcompat.app.AppCompatActivity
import
androidx.appcompat.app.AppCompatActivity
import
chat.rocket.android.R
import
chat.rocket.android.R
...
@@ -47,10 +49,8 @@ class AuthenticationActivity : AppCompatActivity(), HasSupportFragmentInjector {
...
@@ -47,10 +49,8 @@ class AuthenticationActivity : AppCompatActivity(), HasSupportFragmentInjector {
override
fun
onStart
()
{
override
fun
onStart
()
{
super
.
onStart
()
super
.
onStart
()
val
deepLinkInfo
=
intent
.
getLoginDeepLinkInfo
()
launch
(
UI
+
job
)
{
launch
(
UI
+
job
)
{
val
newServer
=
intent
.
getBooleanExtra
(
INTENT_ADD_NEW_SERVER
,
false
)
val
newServer
=
intent
.
getBooleanExtra
(
INTENT_ADD_NEW_SERVER
,
false
)
// if we got authenticateWithDeepLink information, pass true to newServer also
presenter
.
loadCredentials
(
newServer
)
{
authenticated
->
presenter
.
loadCredentials
(
newServer
)
{
authenticated
->
if
(!
authenticated
)
{
if
(!
authenticated
)
{
showOnBoarding
()
showOnBoarding
()
...
@@ -79,6 +79,19 @@ class AuthenticationActivity : AppCompatActivity(), HasSupportFragmentInjector {
...
@@ -79,6 +79,19 @@ class AuthenticationActivity : AppCompatActivity(), HasSupportFragmentInjector {
OnBoardingFragment
.
newInstance
()
OnBoardingFragment
.
newInstance
()
}
}
}
}
override
fun
onCreateOptionsMenu
(
menu
:
Menu
?):
Boolean
{
menuInflater
.
inflate
(
R
.
menu
.
legal
,
menu
)
return
true
}
override
fun
onOptionsItemSelected
(
item
:
MenuItem
?):
Boolean
{
when
(
item
?.
itemId
){
R
.
id
.
action_terms_of_Service
->
presenter
.
termsOfService
(
getString
(
R
.
string
.
action_terms_of_service
))
R
.
id
.
action_privacy_policy
->
presenter
.
privacyPolicy
(
getString
(
R
.
string
.
action_privacy_policy
))
}
return
super
.
onOptionsItemSelected
(
item
)
}
}
}
const
val
INTENT_ADD_NEW_SERVER
=
"INTENT_ADD_NEW_SERVER"
const
val
INTENT_ADD_NEW_SERVER
=
"INTENT_ADD_NEW_SERVER"
...
...
app/src/main/res/layout/fragment_authentication_login_options.xml
View file @
5c4bb503
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
android:background=
"@drawable/rounded_border"
android:background=
"@drawable/rounded_border"
android:foreground=
"?selectableItemBackground"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginTop=
"32dp"
android:layout_marginTop=
"32dp"
...
@@ -34,6 +35,7 @@
...
@@ -34,6 +35,7 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/button_facebook"
app:layout_constraintTop_toBottomOf=
"@id/button_facebook"
android:background=
"@drawable/rounded_border"
android:background=
"@drawable/rounded_border"
android:foreground=
"?selectableItemBackground"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
...
@@ -54,6 +56,7 @@
...
@@ -54,6 +56,7 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/button_github"
app:layout_constraintTop_toBottomOf=
"@id/button_github"
android:background=
"@drawable/rounded_border"
android:background=
"@drawable/rounded_border"
android:foreground=
"?selectableItemBackground"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
...
@@ -74,6 +77,7 @@
...
@@ -74,6 +77,7 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/button_google"
app:layout_constraintTop_toBottomOf=
"@id/button_google"
android:background=
"@drawable/rounded_border"
android:background=
"@drawable/rounded_border"
android:foreground=
"?selectableItemBackground"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
...
@@ -96,6 +100,7 @@
...
@@ -96,6 +100,7 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/button_linkedin"
app:layout_constraintTop_toBottomOf=
"@id/button_linkedin"
android:background=
"@drawable/rounded_border"
android:background=
"@drawable/rounded_border"
android:foreground=
"?selectableItemBackground"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
...
...
app/src/main/res/layout/fragment_authentication_on_boarding.xml
View file @
5c4bb503
...
@@ -47,6 +47,7 @@
...
@@ -47,6 +47,7 @@
app:layout_constraintTop_toBottomOf=
"@id/text_onboarding_description"
app:layout_constraintTop_toBottomOf=
"@id/text_onboarding_description"
android:layout_marginTop=
"48dp"
android:layout_marginTop=
"48dp"
android:background=
"@drawable/rounded_border"
android:background=
"@drawable/rounded_border"
android:foreground=
"?selectableItemBackground"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginEnd=
"16dp"
>
>
...
@@ -90,6 +91,7 @@
...
@@ -90,6 +91,7 @@
app:layout_constraintTop_toBottomOf=
"@id/button_connect_server"
app:layout_constraintTop_toBottomOf=
"@id/button_connect_server"
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
android:background=
"@drawable/rounded_border"
android:background=
"@drawable/rounded_border"
android:foreground=
"?selectableItemBackground"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginEnd=
"16dp"
>
>
...
@@ -147,7 +149,8 @@
...
@@ -147,7 +149,8 @@
android:layout_marginTop=
"10dp"
android:layout_marginTop=
"10dp"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_marginEnd=
"16dp"
android:background=
"@drawable/rounded_color_accent"
>
android:background=
"@drawable/rounded_color_accent"
android:foreground=
"?selectableItemBackground"
>
<ImageView
<ImageView
android:id=
"@+id/image_new_server"
android:id=
"@+id/image_new_server"
android:layout_width=
"30dp"
android:layout_width=
"30dp"
...
...
app/src/main/res/menu/legal.xml
View file @
5c4bb503
...
@@ -4,11 +4,11 @@
...
@@ -4,11 +4,11 @@
<item
<item
android:id=
"@+id/action_terms_of_Service"
android:id=
"@+id/action_terms_of_Service"
android:title=
"
Terms of S
ervice"
android:title=
"
@string/action_terms_of_s
ervice"
app:showAsAction=
"never"
/>
app:showAsAction=
"never"
/>
<item
<item
android:id=
"@+id/action_privacy_policy"
android:id=
"@+id/action_privacy_policy"
android:title=
"
Privacy P
olicy"
android:title=
"
@string/action_privacy_p
olicy"
app:showAsAction=
"never"
/>
app:showAsAction=
"never"
/>
</menu>
</menu>
\ No newline at end of file
app/src/main/res/values-de/strings.xml
View file @
5c4bb503
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
<string
name=
"msg_avatar_url"
>
Avatar URL
</string>
<string
name=
"msg_avatar_url"
>
Avatar URL
</string>
<string
name=
"msg_or_continue_using_social_accounts"
>
Oder weiter mit einem Social Account
</string>
<string
name=
"msg_or_continue_using_social_accounts"
>
Oder weiter mit einem Social Account
</string>
<string
name=
"msg_new_user"
>
Neuer Benutzer? %1$s
</string>
<string
name=
"msg_new_user"
>
Neuer Benutzer? %1$s
</string>
<string
name=
"msg_forgot_password"
>
Passwort vergessen?
%1$s
</string>
<string
name=
"msg_forgot_password"
>
Passwort vergessen?
</string>
<string
name=
"msg_reset"
>
Zurücksetzen
</string>
<string
name=
"msg_reset"
>
Zurücksetzen
</string>
<string
name=
"msg_check_your_email_to_reset_your_password"
>
E-Mail gesendet! Prüfe dein E-Mail Posteingang um dein Passwort zurückzusetzen.
</string>
<string
name=
"msg_check_your_email_to_reset_your_password"
>
E-Mail gesendet! Prüfe dein E-Mail Posteingang um dein Passwort zurückzusetzen.
</string>
<string
name=
"msg_invalid_email"
>
Bitte eine korrekte E-Mail Adresse eingeben
</string>
<string
name=
"msg_invalid_email"
>
Bitte eine korrekte E-Mail Adresse eingeben
</string>
...
...
app/src/main/res/values-es/strings.xml
View file @
5c4bb503
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
<string
name=
"msg_avatar_url"
>
URL del avatar
</string>
<string
name=
"msg_avatar_url"
>
URL del avatar
</string>
<string
name=
"msg_or_continue_using_social_accounts"
>
O continuar usando cuentas sociales
</string>
<string
name=
"msg_or_continue_using_social_accounts"
>
O continuar usando cuentas sociales
</string>
<string
name=
"msg_new_user"
>
Nuevo usuario? %1$s
</string>
<string
name=
"msg_new_user"
>
Nuevo usuario? %1$s
</string>
<string
name=
"msg_forgot_password"
>
Se te olvidó tu contraseña?
%1$s
</string>
<string
name=
"msg_forgot_password"
>
Se te olvidó tu contraseña?
</string>
<string
name=
"msg_reset"
>
reiniciar
</string>
<string
name=
"msg_reset"
>
reiniciar
</string>
<string
name=
"msg_check_your_email_to_reset_your_password"
>
¡Email enviado! Verifique su bandeja de entrada para restablecer su contraseña.
</string>
<string
name=
"msg_check_your_email_to_reset_your_password"
>
¡Email enviado! Verifique su bandeja de entrada para restablecer su contraseña.
</string>
<string
name=
"msg_invalid_email"
>
Por favor escriba un correo electrónico válido
</string>
<string
name=
"msg_invalid_email"
>
Por favor escriba un correo electrónico válido
</string>
...
...
app/src/main/res/values-fr/strings.xml
View file @
5c4bb503
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
<string
name=
"msg_or_continue_using_social_accounts"
>
Ou continuer en utilisant les comptes sociaux
</string>
<string
name=
"msg_or_continue_using_social_accounts"
>
Ou continuer en utilisant les comptes sociaux
</string>
<string
name=
"msg_new_user"
>
Nouvel utilisateur? %1$s
</string>
<string
name=
"msg_new_user"
>
Nouvel utilisateur? %1$s
</string>
// TODO: Add proper translation.
// TODO: Add proper translation.
<string
name=
"msg_forgot_password"
>
Forgot password?
%1$s
</string>
<string
name=
"msg_forgot_password"
>
Forgot password?
</string>
// TODO: Add proper translation.
// TODO: Add proper translation.
<string
name=
"msg_reset"
>
Reset
</string>
<string
name=
"msg_reset"
>
Reset
</string>
// TODO: Add proper translation.
// TODO: Add proper translation.
...
...
app/src/main/res/values-hi-rIN/strings.xml
View file @
5c4bb503
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<string
name=
"msg_avatar_url"
>
अवतार यूआरएल
</string>
<string
name=
"msg_avatar_url"
>
अवतार यूआरएल
</string>
<string
name=
"msg_or_continue_using_social_accounts"
>
या सामाजिक खाते का उपयोग करना जारी रखें
</string>
<string
name=
"msg_or_continue_using_social_accounts"
>
या सामाजिक खाते का उपयोग करना जारी रखें
</string>
<string
name=
"msg_new_user"
>
नया उपयोगकर्ता? %1$s
</string>
<string
name=
"msg_new_user"
>
नया उपयोगकर्ता? %1$s
</string>
<string
name=
"msg_forgot_password"
>
पासवर्ड भूल गए?
%1$s
</string>
<string
name=
"msg_forgot_password"
>
पासवर्ड भूल गए?
</string>
<string
name=
"msg_reset"
>
रीसेट करें
</string>
<string
name=
"msg_reset"
>
रीसेट करें
</string>
<string
name=
"msg_check_your_email_to_reset_your_password"
>
ईमेल गया गया है! अपना पासवर्ड रीसेट करने के लिए अपने इनबॉक्स की जांच करें।
</string>
<string
name=
"msg_check_your_email_to_reset_your_password"
>
ईमेल गया गया है! अपना पासवर्ड रीसेट करने के लिए अपने इनबॉक्स की जांच करें।
</string>
<string
name=
"msg_invalid_email"
>
कृपया एक वैध ई-मेल टाइप करें
</string>
<string
name=
"msg_invalid_email"
>
कृपया एक वैध ई-मेल टाइप करें
</string>
...
...
app/src/main/res/values-pt-rBR/strings.xml
View file @
5c4bb503
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<string
name=
"msg_avatar_url"
>
URL do avatar
</string>
<string
name=
"msg_avatar_url"
>
URL do avatar
</string>
<string
name=
"msg_or_continue_using_social_accounts"
>
Ou continue através de contas sociais
</string>
<string
name=
"msg_or_continue_using_social_accounts"
>
Ou continue através de contas sociais
</string>
<string
name=
"msg_new_user"
>
Novo usuário? %1$s
</string>
<string
name=
"msg_new_user"
>
Novo usuário? %1$s
</string>
<string
name=
"msg_forgot_password"
>
Esqueceu a senha?
%1$s
</string>
<string
name=
"msg_forgot_password"
>
Esqueceu a senha?
</string>
<string
name=
"msg_reset"
>
Redefinir
</string>
<string
name=
"msg_reset"
>
Redefinir
</string>
<string
name=
"msg_check_your_email_to_reset_your_password"
>
Email enviado! Verifique sua caixa de entrada para redefinir sua senha.
</string>
<string
name=
"msg_check_your_email_to_reset_your_password"
>
Email enviado! Verifique sua caixa de entrada para redefinir sua senha.
</string>
<string
name=
"msg_invalid_email"
>
Por favor informe um e-mail válido
</string>
<string
name=
"msg_invalid_email"
>
Por favor informe um e-mail válido
</string>
...
...
app/src/main/res/values-ru/strings.xml
View file @
5c4bb503
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<string
name=
"msg_avatar_url"
>
URL аватара
</string>
<string
name=
"msg_avatar_url"
>
URL аватара
</string>
<string
name=
"msg_or_continue_using_social_accounts"
>
Или продолжить, используя социальные учетные записи
</string>
<string
name=
"msg_or_continue_using_social_accounts"
>
Или продолжить, используя социальные учетные записи
</string>
<string
name=
"msg_new_user"
>
Новый пользователь? %1$s
</string>
<string
name=
"msg_new_user"
>
Новый пользователь? %1$s
</string>
<string
name=
"msg_forgot_password"
>
Забыли пароль?
%1$s
</string>
<string
name=
"msg_forgot_password"
>
Забыли пароль?
</string>
<string
name=
"msg_reset"
>
Сброс
</string>
<string
name=
"msg_reset"
>
Сброс
</string>
<string
name=
"msg_check_your_email_to_reset_your_password"
>
Письмо отправлено! Проверьте свой почтовый ящик, чтобы сбросить пароль.
</string>
<string
name=
"msg_check_your_email_to_reset_your_password"
>
Письмо отправлено! Проверьте свой почтовый ящик, чтобы сбросить пароль.
</string>
<string
name=
"msg_invalid_email"
>
Введите действующий e-mail
</string>
<string
name=
"msg_invalid_email"
>
Введите действующий e-mail
</string>
...
...
app/src/main/res/values/strings.xml
View file @
5c4bb503
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
<string
name=
"msg_avatar_url"
>
avatar URL
</string>
<string
name=
"msg_avatar_url"
>
avatar URL
</string>
<string
name=
"msg_or_continue_using_social_accounts"
>
Or continue using social accounts
</string>
<string
name=
"msg_or_continue_using_social_accounts"
>
Or continue using social accounts
</string>
<string
name=
"msg_new_user"
>
New user? %1$s
</string>
<string
name=
"msg_new_user"
>
New user? %1$s
</string>
<string
name=
"msg_forgot_password"
>
Forgot password?
%1$s
</string>
<string
name=
"msg_forgot_password"
>
Forgot password?
</string>
<string
name=
"msg_reset"
>
Reset
</string>
<string
name=
"msg_reset"
>
Reset
</string>
<string
name=
"msg_check_your_email_to_reset_your_password"
>
Email sent! Check your inbox to reset your password.
</string>
<string
name=
"msg_check_your_email_to_reset_your_password"
>
Email sent! Check your inbox to reset your password.
</string>
<string
name=
"msg_invalid_email"
>
Please type a valid e-mail
</string>
<string
name=
"msg_invalid_email"
>
Please type a valid e-mail
</string>
...
...
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