Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
528
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
708e8f39
Commit
708e8f39
authored
5 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Browsers: release breadcrumb adapter
(cherry picked from commit
78ec0c3b
)
parent
66f5db84
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#5824
passed with stage
in 3 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
+7
-1
7 additions, 1 deletion
...rc/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
with
7 additions
and
1 deletion
vlc-android/src/org/videolan/vlc/gui/browser/MediaBrowserFragment.java
+
7
−
1
View file @
708e8f39
...
@@ -98,7 +98,6 @@ public abstract class MediaBrowserFragment<T extends SortableModel> extends Frag
...
@@ -98,7 +98,6 @@ public abstract class MediaBrowserFragment<T extends SortableModel> extends Frag
mSwipeRefreshLayout
=
view
.
findViewById
(
R
.
id
.
swipeLayout
);
mSwipeRefreshLayout
=
view
.
findViewById
(
R
.
id
.
swipeLayout
);
mSwipeRefreshLayout
.
setColorSchemeResources
(
R
.
color
.
orange700
);
mSwipeRefreshLayout
.
setColorSchemeResources
(
R
.
color
.
orange700
);
if
(
hasFAB
())
mFabPlay
=
requireActivity
().
findViewById
(
R
.
id
.
fab
);
if
(
hasFAB
())
mFabPlay
=
requireActivity
().
findViewById
(
R
.
id
.
fab
);
setBreadcrumb
();
}
}
protected
boolean
hasFAB
()
{
protected
boolean
hasFAB
()
{
...
@@ -110,9 +109,15 @@ public abstract class MediaBrowserFragment<T extends SortableModel> extends Frag
...
@@ -110,9 +109,15 @@ public abstract class MediaBrowserFragment<T extends SortableModel> extends Frag
if
(
ariane
!=
null
)
ariane
.
setVisibility
(
View
.
GONE
);
if
(
ariane
!=
null
)
ariane
.
setVisibility
(
View
.
GONE
);
}
}
protected
void
releaseBreadCrumb
()
{
final
RecyclerView
ariane
=
requireActivity
().
findViewById
(
R
.
id
.
ariane
);
if
(
ariane
!=
null
)
ariane
.
setAdapter
(
null
);
}
@Override
@Override
public
void
onStart
()
{
public
void
onStart
()
{
super
.
onStart
();
super
.
onStart
();
setBreadcrumb
();
updateActionBar
();
updateActionBar
();
if
(
mFabPlay
!=
null
)
{
if
(
mFabPlay
!=
null
)
{
setFabPlayVisibility
(
true
);
setFabPlayVisibility
(
true
);
...
@@ -131,6 +136,7 @@ public abstract class MediaBrowserFragment<T extends SortableModel> extends Frag
...
@@ -131,6 +136,7 @@ public abstract class MediaBrowserFragment<T extends SortableModel> extends Frag
@Override
@Override
public
void
onStop
()
{
public
void
onStop
()
{
super
.
onStop
();
super
.
onStop
();
releaseBreadCrumb
();
setFabPlayVisibility
(
false
);
setFabPlayVisibility
(
false
);
restart
=
true
;
restart
=
true
;
}
}
...
...
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