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
185ac1f2
Commit
185ac1f2
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Fix infinite loading when medialibrary has no audio
parent
c3decdb8
No related branches found
Branches containing commit
No related tags found
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/audio/AudioBrowserFragment.java
+1
-8
1 addition, 8 deletions
.../src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
with
1 addition
and
8 deletions
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+
1
−
8
View file @
185ac1f2
...
...
@@ -96,8 +96,6 @@ public class AudioBrowserFragment extends BaseAudioBrowser implements SwipeRefre
private
final
static
int
MODE_PLAYLIST
=
4
;
private
final
static
int
MODE_TOTAL
=
5
;
// Number of audio browser modes
public
final
static
int
MSG_LOADING
=
0
;
public
final
static
String
TAG_ITEM
=
"ML_ITEM"
;
@Override
...
...
@@ -554,11 +552,6 @@ public class AudioBrowserFragment extends BaseAudioBrowser implements SwipeRefre
final
AudioBrowserFragment
fragment
=
getOwner
();
if
(
fragment
==
null
)
return
;
switch
(
msg
.
what
)
{
case
MSG_LOADING:
if
(
fragment
.
mArtistsAdapter
.
isEmpty
()
&&
fragment
.
mAlbumsAdapter
.
isEmpty
()
&&
fragment
.
mSongsAdapter
.
isEmpty
()
&&
fragment
.
mGenresAdapter
.
isEmpty
())
fragment
.
mSwipeRefreshLayout
.
setRefreshing
(
true
);
break
;
case
REFRESH:
refresh
(
fragment
,
(
String
)
msg
.
obj
);
break
;
...
...
@@ -591,7 +584,7 @@ public class AudioBrowserFragment extends BaseAudioBrowser implements SwipeRefre
@MainThread
private
void
updateLists
()
{
mTabLayout
.
setVisibility
(
View
.
VISIBLE
);
mHandler
.
sendEmptyMessageDelayed
(
MSG_LOAD
ING
,
300
);
mHandler
.
sendEmptyMessageDelayed
(
SET_REFRESH
ING
,
300
);
mHandler
.
removeMessages
(
UPDATE_LIST
);
updateArtists
();
updateAlbums
();
...
...
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