Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-Android
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
324
Issues
324
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-Android
Commits
36cdd2f8
Commit
36cdd2f8
authored
Feb 16, 2017
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Conditionnally enable PTR on audio list update
parent
c7cb4e81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
.../src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+1
-7
No files found.
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
View file @
36cdd2f8
...
...
@@ -213,13 +213,6 @@ public class AudioBrowserFragment extends BaseAudioBrowser implements DevicesDis
fillView
();
else
setupMediaLibraryReceiver
();
final
RecyclerView
current
=
getCurrentRV
();
current
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
mSwipeRefreshLayout
.
setEnabled
(((
LinearLayoutManager
)
current
.
getLayoutManager
()).
findFirstVisibleItemPosition
()
==
0
);
}
});
}
protected
void
fillView
()
{
...
...
@@ -563,6 +556,7 @@ public class AudioBrowserFragment extends BaseAudioBrowser implements DevicesDis
@Override
public
void
onUpdateFinished
(
RecyclerView
.
Adapter
adapter
)
{
if
(
adapter
==
getCurrentAdapter
())
{
mSwipeRefreshLayout
.
setEnabled
(((
LinearLayoutManager
)
getCurrentRV
().
getLayoutManager
()).
findFirstVisibleItemPosition
()
<=
0
);
updateEmptyView
(
mViewPager
.
getCurrentItem
());
mFastScroller
.
setRecyclerView
(
getCurrentRV
());
}
...
...
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