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
b3d089ce
Commit
b3d089ce
authored
Dec 26, 2018
by
Govind Dixit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made requested changes
parent
9063863c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
41 deletions
+53
-41
MainActivity.kt
...src/main/java/chat/rocket/android/main/ui/MainActivity.kt
+53
-41
No files found.
app/src/main/java/chat/rocket/android/main/ui/MainActivity.kt
View file @
b3d089ce
...
@@ -254,7 +254,13 @@ class MainActivity : AppCompatActivity(), MainView, HasActivityInjector,
...
@@ -254,7 +254,13 @@ class MainActivity : AppCompatActivity(), MainView, HasActivityInjector,
fun
setCheckedNavDrawerItem
(
@IdRes
item
:
Int
)
=
view_navigation
.
setCheckedItem
(
item
)
fun
setCheckedNavDrawerItem
(
@IdRes
item
:
Int
)
=
view_navigation
.
setCheckedItem
(
item
)
override
fun
showProgress
()
{
override
fun
showProgress
()
{
progressDialog
=
ProgressDialog
.
show
(
this
,
getString
(
R
.
string
.
app_name
),
getString
(
R
.
string
.
msg_log_out
),
true
,
false
)
progressDialog
=
ProgressDialog
.
show
(
this
,
getString
(
R
.
string
.
app_name
),
getString
(
R
.
string
.
msg_log_out
),
true
,
false
)
}
}
override
fun
hideProgress
()
{
override
fun
hideProgress
()
{
...
@@ -268,22 +274,28 @@ class MainActivity : AppCompatActivity(), MainView, HasActivityInjector,
...
@@ -268,22 +274,28 @@ class MainActivity : AppCompatActivity(), MainView, HasActivityInjector,
val
builder
=
AlertDialog
.
Builder
(
this
)
val
builder
=
AlertDialog
.
Builder
(
this
)
builder
.
setTitle
(
"Choose Language"
)
builder
.
setTitle
(
"Choose Language"
)
builder
.
setSingleChoiceItems
(
languages
,
-
1
)
{
dialog
,
which
->
builder
.
setSingleChoiceItems
(
languages
,
-
1
)
{
dialog
,
which
->
if
(
which
==
0
)
{
when
(
which
){
0
->{
setLocale
(
"en"
)
setLocale
(
"en"
)
recreate
()
recreate
()
}
else
if
(
which
==
1
)
{
}
1
->{
setLocale
(
"hi"
)
setLocale
(
"hi"
)
recreate
()
recreate
()
}
else
if
(
which
==
2
)
{
}
2
->{
setLocale
(
"ja"
)
setLocale
(
"ja"
)
recreate
()
recreate
()
}
else
if
(
which
==
3
)
{
}
3
->{
setLocale
(
"ru"
)
setLocale
(
"ru"
)
recreate
()
recreate
()
}
else
if
(
which
==
4
)
{
}
4
->{
setLocale
(
"it"
)
setLocale
(
"it"
)
recreate
()
recreate
()
}
}
}
dialog
.
dismiss
()
dialog
.
dismiss
()
}
}
val
mdialog
=
builder
.
create
()
val
mdialog
=
builder
.
create
()
...
...
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