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
bda07296
Commit
bda07296
authored
9 years ago
by
Alexandre Perraud
Browse files
Options
Downloads
Patches
Plain Diff
TV Audio Player : Remove unnecessary code
parent
0e6cd628
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/flavors/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
+3
-9
3 additions, 9 deletions
.../videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
with
3 additions
and
9 deletions
vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
+
3
−
9
View file @
bda07296
...
...
@@ -135,8 +135,6 @@ public class AudioPlayerActivity extends BaseTvActivity implements PlaybackServi
mRecyclerView
.
setAdapter
(
mAdapter
);
}
selectItem
(
mCurrentlyPlaying
);
}
@Override
...
...
@@ -173,6 +171,9 @@ public class AudioPlayerActivity extends BaseTvActivity implements PlaybackServi
mCover
.
setImageResource
(
R
.
drawable
.
ic_tv_icon_big
);
else
mCover
.
setImageBitmap
(
cover
);
mCurrentlyPlaying
=
mService
.
getCurrentMediaPosition
();
selectItem
(
mCurrentlyPlaying
);
}
}
...
...
@@ -357,14 +358,12 @@ public class AudioPlayerActivity extends BaseTvActivity implements PlaybackServi
private
void
goPrevious
()
{
if
(
mService
!=
null
&&
mService
.
hasPrevious
())
{
mService
.
previous
();
selectItem
(--
mCurrentlyPlaying
);
}
}
private
void
goNext
()
{
if
(
mService
!=
null
&&
mService
.
hasNext
()){
mService
.
next
();
selectItem
(++
mCurrentlyPlaying
);
}
}
...
...
@@ -377,11 +376,6 @@ public class AudioPlayerActivity extends BaseTvActivity implements PlaybackServi
mService
.
play
();
}
private
void
pause
()
{
if
(
mService
!=
null
&&
mService
.
isPlaying
())
mService
.
pause
();
}
private
void
selectNext
()
{
if
(
mAdapter
.
getmSelectedItem
()
>=
mAdapter
.
getItemCount
()-
1
)
{
mProgressBar
.
requestFocus
();
...
...
This diff is collapsed.
Click to expand it.
Alexandre Perraud
@Corbax
mentioned in commit
8320e5f6
·
9 years ago
mentioned in commit
8320e5f6
mentioned in commit 8320e5f677d1d8119988c0783d615133786dbdc8
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