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
13
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
e97ee736
Commit
e97ee736
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Set adapter only if needed
parent
353e48d6
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/browser/BaseBrowserFragment.java
+2
-1
2 additions, 1 deletion
...src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
with
2 additions
and
1 deletion
vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+
2
−
1
View file @
e97ee736
...
...
@@ -187,7 +187,8 @@ public abstract class BaseBrowserFragment extends SortableFragment<BaseBrowserAd
@Override
public
void
onActivityCreated
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onActivityCreated
(
savedInstanceState
);
mAdapter
=
new
BaseBrowserAdapter
(
this
);
if
(
mAdapter
==
null
)
mAdapter
=
new
BaseBrowserAdapter
(
this
);
mLayoutManager
=
new
LinearLayoutManager
(
getActivity
());
mRecyclerView
.
setLayoutManager
(
mLayoutManager
);
mRecyclerView
.
setAdapter
(
mAdapter
);
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
6d906570
·
7 years ago
mentioned in commit
6d906570
mentioned in commit 6d906570d1fdafafd1cfb9362931a360a773462a
Toggle commit list
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