[Android] PlaybackService: rename setChapter/getChapter
Thomas Guillem
git at videolan.org
Thu Jul 2 09:14:32 CEST 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jul 2 09:14:18 2015 +0200| [50f7f4756d7672e22cb8413da302fabef8197a94] | committer: Thomas Guillem
PlaybackService: rename setChapter/getChapter
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=50f7f4756d7672e22cb8413da302fabef8197a94
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 4 ++--
.../src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java | 7 +++----
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 5f69aae..cb5979e 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1685,12 +1685,12 @@ public class PlaybackService extends Service {
}
@MainThread
- public int getChapter() {
+ public int getChapterIdx() {
return mMediaPlayer.getChapter();
}
@MainThread
- public void setChapter(int chapter) {
+ public void setChapterIdx(int chapter) {
mMediaPlayer.setChapter(chapter);
}
diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
index 8fabdc8..196952c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
@@ -56,7 +56,6 @@ import org.videolan.vlc.gui.video.VideoPlayerActivity;
import org.videolan.vlc.interfaces.IDelayController;
import org.videolan.vlc.util.Strings;
import org.videolan.vlc.util.Util;
-import org.videolan.vlc.util.VLCInstance;
import org.videolan.vlc.util.WeakHandler;
import java.util.Calendar;
@@ -219,12 +218,12 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
adapter.insert(chapters[i].name != null ? chapters[i].name : Integer.toString(i), i);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
mChapters.setAdapter(adapter);
- mChapters.setSelection(mService.getChapter());
+ mChapters.setSelection(mService.getChapterIdx());
mChapters.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
- if (position != mService.getChapter())
- mService.setChapter(position);
+ if (position != mService.getChapterIdx())
+ mService.setChapterIdx(position);
}
@Override
More information about the Android
mailing list