Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
liberty
chat
liberty-chat-android
Commits
a765cdb7
Commit
a765cdb7
authored
Nov 19, 2019
by
Valere
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unneeded runOnUiThread
parent
8ca07df9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
vector/src/main/java/im/vector/fragments/roomwidgets/WebviewPermissionUtils.kt
...im/vector/fragments/roomwidgets/WebviewPermissionUtils.kt
+4
-6
No files found.
vector/src/main/java/im/vector/fragments/roomwidgets/WebviewPermissionUtils.kt
View file @
a765cdb7
...
...
@@ -40,14 +40,12 @@ object WebviewPermissionUtils {
allowedPermissions
[
which
]
=
allowedPermissions
[
which
].
first
to
isChecked
}
.
setPositiveButton
(
R
.
string
.
room_widget_resource_grant_permission
)
{
dialog
,
wich
->
activity
.
runOnUiThread
{
request
.
grant
(
allowedPermissions
.
mapNotNull
{
perm
->
perm
.
first
.
takeIf
{
perm
.
second
}
}.
toTypedArray
())
}
}
.
setNegativeButton
(
R
.
string
.
room_widget_resource_decline_permission
)
{
dialog
,
wich
->
activity
.
runOnUiThread
{
request
.
deny
()
}
request
.
deny
()
}
.
show
()
}
...
...
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