Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
535
Issue boards
Milestones
Wiki
Code
Merge requests
17
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
c8bebce5
Commit
c8bebce5
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Cleaning
parent
5b4206cf
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/tv/TvUtil.java
+3
-5
3 additions, 5 deletions
vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.java
with
3 additions
and
5 deletions
vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.java
+
3
−
5
View file @
c8bebce5
...
...
@@ -35,7 +35,6 @@ import android.support.v17.leanback.widget.Row;
import
android.support.v4.content.ContextCompat
;
import
android.support.v4.util.LruCache
;
import
android.text.TextUtils
;
import
android.view.View
;
import
org.videolan.medialibrary.media.MediaLibraryItem
;
import
org.videolan.medialibrary.media.MediaWrapper
;
...
...
@@ -62,10 +61,9 @@ import static org.videolan.vlc.gui.tv.browser.MusicFragment.CATEGORY_ALBUMS;
public
class
TvUtil
{
public
static
void
applyOverscanMargin
(
Activity
activity
)
{
View
content
=
activity
.
findViewById
(
android
.
R
.
id
.
content
);
int
hm
=
activity
.
getResources
().
getDimensionPixelSize
(
R
.
dimen
.
tv_overscan_horizontal
);
int
vm
=
activity
.
getResources
().
getDimensionPixelSize
(
R
.
dimen
.
tv_overscan_vertical
);
content
.
setPadding
(
hm
,
vm
,
hm
,
vm
);
final
int
hm
=
activity
.
getResources
().
getDimensionPixelSize
(
R
.
dimen
.
tv_overscan_horizontal
);
final
int
vm
=
activity
.
getResources
().
getDimensionPixelSize
(
R
.
dimen
.
tv_overscan_vertical
);
activity
.
findViewById
(
android
.
R
.
id
.
content
).
setPadding
(
hm
,
vm
,
hm
,
vm
);
}
public
static
void
playMedia
(
Activity
activity
,
MediaWrapper
media
){
...
...
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