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
315
Issues
315
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
a60523d8
Commit
a60523d8
authored
Feb 21, 2017
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve loading visual feedback in browsers
parent
c86a9db7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
...src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+3
-4
No files found.
vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
View file @
a60523d8
...
...
@@ -287,7 +287,7 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
* Update views visibility and emptiness info
*/
protected
void
updateEmptyView
()
{
if
(
mAdapter
.
isEmpty
()){
if
(
mAdapter
.
isEmpty
())
{
if
(
mSwipeRefreshLayout
.
isRefreshing
())
{
mEmptyView
.
setText
(
R
.
string
.
loading
);
mEmptyView
.
setVisibility
(
View
.
VISIBLE
);
...
...
@@ -296,12 +296,10 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
mEmptyView
.
setText
(
R
.
string
.
directory_empty
);
mEmptyView
.
setVisibility
(
View
.
VISIBLE
);
mRecyclerView
.
setVisibility
(
View
.
GONE
);
mSwipeRefreshLayout
.
setRefreshing
(
false
);
}
}
else
if
(
mEmptyView
.
getVisibility
()
==
View
.
VISIBLE
)
{
mEmptyView
.
setVisibility
(
View
.
GONE
);
mRecyclerView
.
setVisibility
(
View
.
VISIBLE
);
mSwipeRefreshLayout
.
setRefreshing
(
false
);
}
}
...
...
@@ -749,8 +747,9 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
}
public
void
onUpdateFinished
(
RecyclerView
.
Adapter
adapter
)
{
parseSubDirectories
(
);
mHandler
.
sendEmptyMessage
(
BrowserFragmentHandler
.
MSG_HIDE_LOADING
);
updateEmptyView
();
parseSubDirectories
();
if
(!
mAdapter
.
isEmpty
())
{
if
(
mSavedPosition
>
0
)
{
mLayoutManager
.
scrollToPositionWithOffset
(
mSavedPosition
,
0
);
...
...
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