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
201e5368
Commit
201e5368
authored
Mar 27, 2019
by
Govind Dixit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add requested changes
parent
04b0e153
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
14 deletions
+22
-14
SettingsFragment.kt
.../java/chat/rocket/android/settings/ui/SettingsFragment.kt
+22
-14
No files found.
app/src/main/java/chat/rocket/android/settings/ui/SettingsFragment.kt
View file @
201e5368
...
@@ -153,59 +153,67 @@ class SettingsFragment : Fragment(), SettingsView, AdapterView.OnItemClickListen
...
@@ -153,59 +153,67 @@ class SettingsFragment : Fragment(), SettingsView, AdapterView.OnItemClickListen
.
setSingleChoiceItems
(
languages
,
-
1
)
{
dialog
,
which
->
.
setSingleChoiceItems
(
languages
,
-
1
)
{
dialog
,
which
->
when
(
which
)
{
when
(
which
)
{
0
->
{
0
->
{
presenter
.
setLocale
(
"en"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocale
(
"en"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
1
->
{
1
->
{
presenter
.
setLocale
(
"hi"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocale
(
"hi"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
2
->
{
2
->
{
presenter
.
setLocale
(
"ja"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocale
(
"ja"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
3
->
{
3
->
{
presenter
.
setLocale
(
"ru"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocale
(
"ru"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
4
->
{
4
->
{
presenter
.
setLocale
(
"it"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocale
(
"it"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
5
->{
5
->{
presenter
.
setLocaleWithRegion
(
"pt"
,
"BR"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocaleWithRegion
(
"pt"
,
"BR"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
6
->{
6
->{
presenter
.
setLocaleWithRegion
(
"pt"
,
"PT"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocaleWithRegion
(
"pt"
,
"PT"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
7
->{
7
->{
presenter
.
setLocale
(
"zh"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocale
(
"zh"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
8
->{
8
->{
presenter
.
setLocale
(
"de"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocale
(
"de"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
9
->{
9
->{
presenter
.
setLocale
(
"es"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocale
(
"es"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
10
->{
10
->{
presenter
.
setLocale
(
"fa"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocale
(
"fa"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
11
->{
11
->{
presenter
.
setLocale
(
"fr"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocale
(
"fr"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
12
->{
12
->{
presenter
.
setLocale
(
"tr"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocale
(
"tr"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
13
->{
13
->{
presenter
.
setLocale
(
"uk"
,
activity
!!
.
baseContext
)
activity
?.
baseContext
?.
let
{
it1
->
presenter
.
setLocale
(
"uk"
,
it1
)
}
activity
?.
recreate
()
activity
?.
recreate
()
}
}
}
}
...
...
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