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
fe19149b
Commit
fe19149b
authored
6 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Ensure PlaylistActivity view is set in main thread
parent
a2c2c186
No related branches found
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/PlaylistActivity.java
+7
-3
7 additions, 3 deletions
vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java
with
7 additions
and
3 deletions
vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java
+
7
−
3
View file @
fe19149b
...
...
@@ -118,8 +118,12 @@ public class PlaylistActivity extends AudioPlayerContainerActivity implements IE
mBinding
.
fab
.
setVisibility
(
fabVisibility
);
}
});
}
else
fabFallback
();
}
else
VLCApplication
.
runOnMainThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
fabFallback
();
}
});
}
});
}
else
...
...
@@ -130,7 +134,7 @@ public class PlaylistActivity extends AudioPlayerContainerActivity implements IE
private
void
fabFallback
()
{
mBinding
.
appbar
.
setExpanded
(
false
);
ViewCompat
.
setNestedScrollingEnabled
(
mBinding
.
songs
,
false
);
CoordinatorLayout
.
LayoutParams
lp
=
(
CoordinatorLayout
.
LayoutParams
)
mBinding
.
fab
.
getLayoutParams
();
final
CoordinatorLayout
.
LayoutParams
lp
=
(
CoordinatorLayout
.
LayoutParams
)
mBinding
.
fab
.
getLayoutParams
();
lp
.
setAnchorId
(
R
.
id
.
container_list
);
lp
.
anchorGravity
=
Gravity
.
BOTTOM
|
Gravity
.
RIGHT
|
Gravity
.
END
;
lp
.
bottomMargin
=
getResources
().
getDimensionPixelSize
(
R
.
dimen
.
default_margin
);
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
a48f8385
·
6 years ago
mentioned in commit
a48f8385
mentioned in commit a48f838506263f66202792d029a87ca19a09162f
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