Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
14
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
f569fbea
Commit
f569fbea
authored
8 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Fix audioplayer opening
parent
20d9fc66
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
+13
-8
13 additions, 8 deletions
...rc/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
with
13 additions
and
8 deletions
vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
+
13
−
8
View file @
f569fbea
...
...
@@ -224,11 +224,16 @@ public class AudioPlayerContainerActivity extends AppCompatActivity implements P
* Show the audio player.
*/
public
void
showAudioPlayer
()
{
mActionBar
.
collapseActionView
();
// Open the pane only if is entirely opened.
if
(
mSlidingPane
.
getState
()
==
mSlidingPane
.
STATE_OPENED_ENTIRELY
)
mSlidingPane
.
openPane
();
mAudioPlayerFilling
.
setVisibility
(
View
.
VISIBLE
);
mActivityHandler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
mActionBar
.
collapseActionView
();
// Open the pane only if is entirely opened.
if
(
mSlidingPane
.
getState
()
==
mSlidingPane
.
STATE_OPENED_ENTIRELY
)
mSlidingPane
.
openPane
();
mAudioPlayerFilling
.
setVisibility
(
View
.
VISIBLE
);
}
});
}
public
int
getSlidingPaneState
()
{
...
...
@@ -337,14 +342,14 @@ public class AudioPlayerContainerActivity extends AppCompatActivity implements P
String
action
=
intent
.
getAction
();
if
(
action
.
equalsIgnoreCase
(
Intent
.
ACTION_MEDIA_MOUNTED
))
{
m
StorageHandler
Handler
.
sendEmptyMessage
(
ACTION_MEDIA_MOUNTED
);
m
Activity
Handler
.
sendEmptyMessage
(
ACTION_MEDIA_MOUNTED
);
}
else
if
(
action
.
equalsIgnoreCase
(
Intent
.
ACTION_MEDIA_UNMOUNTED
))
{
m
StorageHandler
Handler
.
sendEmptyMessageDelayed
(
ACTION_MEDIA_UNMOUNTED
,
100
);
m
Activity
Handler
.
sendEmptyMessageDelayed
(
ACTION_MEDIA_UNMOUNTED
,
100
);
}
}
};
Handler
m
StorageHandler
Handler
=
new
StorageHandler
(
this
);
Handler
m
Activity
Handler
=
new
StorageHandler
(
this
);
private
static
final
int
ACTION_MEDIA_MOUNTED
=
1337
;
private
static
final
int
ACTION_MEDIA_UNMOUNTED
=
1338
;
...
...
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