Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
529
Issue boards
Milestones
Wiki
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
3f1ab488
Commit
3f1ab488
authored
5 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Auto close storage dialog after 30s
(cherry picked from commit
08946ca7
)
parent
c66d5705
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#6622
passed with stage
in 3 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/dialogs/DeviceDialog.kt
+12
-2
12 additions, 2 deletions
vlc-android/src/org/videolan/vlc/gui/dialogs/DeviceDialog.kt
with
12 additions
and
2 deletions
vlc-android/src/org/videolan/vlc/gui/dialogs/DeviceDialog.kt
+
12
−
2
View file @
3f1ab488
...
...
@@ -6,6 +6,7 @@ import android.view.LayoutInflater
import
android.view.View
import
android.view.ViewGroup
import
androidx.fragment.app.DialogFragment
import
kotlinx.coroutines.*
import
org.videolan.vlc.R
import
org.videolan.vlc.StartActivity
import
org.videolan.vlc.databinding.DialogExtDeviceBinding
...
...
@@ -14,7 +15,7 @@ import org.videolan.vlc.util.EXTRA_PATH
private
const
val
TAG
=
"VLC/DeviceDialog"
class
DeviceDialog
:
DialogFragment
()
{
class
DeviceDialog
:
DialogFragment
()
,
CoroutineScope
by
MainScope
()
{
private
lateinit
var
path
:
String
private
lateinit
var
uuid
:
String
...
...
@@ -22,7 +23,7 @@ class DeviceDialog : DialogFragment() {
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setStyle
(
DialogFragment
.
STYLE_NO_FRAME
,
0
)
setStyle
(
STYLE_NO_FRAME
,
0
)
}
override
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
?,
savedInstanceState
:
Bundle
?):
View
?
{
...
...
@@ -33,8 +34,17 @@ class DeviceDialog : DialogFragment() {
return
binding
.
root
}
override
fun
onViewCreated
(
view
:
View
,
savedInstanceState
:
Bundle
?)
{
super
.
onViewCreated
(
view
,
savedInstanceState
)
launch
{
delay
(
30_000L
)
dismiss
()
}
}
override
fun
onDestroy
()
{
super
.
onDestroy
()
cancel
()
activity
?.
finish
()
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment