[Android] Rename SavePlaylist to SavePlaylistDialog for consistency
Jean-Baptiste Kempf
git at videolan.org
Sat May 23 19:09:13 CEST 2015
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat May 23 18:37:40 2015 +0200| [57766cd722e10ead838bc04a8299e764e9bc82e2] | committer: Jean-Baptiste Kempf
Rename SavePlaylist to SavePlaylistDialog for consistency
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=57766cd722e10ead838bc04a8299e764e9bc82e2
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java | 8 +++-----
.../gui/dialogs/{SavePlaylist.java => SavePlaylistDialog.java} | 6 +++---
2 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
index 6b23f57..7a8d35e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.java
@@ -20,14 +20,12 @@
package org.videolan.vlc.gui.audio;
-import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.media.AudioManager;
import android.os.Bundle;
import android.os.Handler;
-import android.os.Parcelable;
import android.preference.PreferenceManager;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
@@ -62,7 +60,7 @@ import org.videolan.vlc.gui.PreferencesActivity;
import org.videolan.vlc.gui.audio.widget.CoverMediaSwitcher;
import org.videolan.vlc.gui.audio.widget.HeaderMediaSwitcher;
import org.videolan.vlc.gui.dialogs.AdvOptionsDialog;
-import org.videolan.vlc.gui.dialogs.SavePlaylist;
+import org.videolan.vlc.gui.dialogs.SavePlaylistDialog;
import org.videolan.vlc.interfaces.IAudioPlayer;
import org.videolan.vlc.util.Strings;
import org.videolan.vlc.util.Util;
@@ -608,9 +606,9 @@ public class AudioPlayer extends Fragment implements IAudioPlayer, View.OnClickL
switch (v.getId()){
case R.id.playlist_save:
FragmentManager fm = getActivity().getSupportFragmentManager();
- SavePlaylist savePlaylistDialog = new SavePlaylist();
+ SavePlaylistDialog savePlaylistDialog = new SavePlaylistDialog();
Bundle args = new Bundle();
- args.putParcelableArrayList(SavePlaylist.KEY_TRACKS, (ArrayList<MediaWrapper>) mAudioController.getMedias());
+ args.putParcelableArrayList(SavePlaylistDialog.KEY_TRACKS, (ArrayList<MediaWrapper>) mAudioController.getMedias());
savePlaylistDialog.setArguments(args);
savePlaylistDialog.show(fm, "fragment_save_playlist");
break;
diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/SavePlaylist.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/SavePlaylistDialog.java
similarity index 94%
rename from vlc-android/src/org/videolan/vlc/gui/dialogs/SavePlaylist.java
rename to vlc-android/src/org/videolan/vlc/gui/dialogs/SavePlaylistDialog.java
index 7c3a5bf..d6d5b10 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/SavePlaylist.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/SavePlaylistDialog.java
@@ -48,9 +48,9 @@ import org.videolan.vlc.gui.audio.AudioBrowserListAdapter;
import java.util.ArrayList;
-public class SavePlaylist extends DialogFragment implements AdapterView.OnItemClickListener, View.OnClickListener, TextView.OnEditorActionListener {
+public class SavePlaylistDialog extends DialogFragment implements AdapterView.OnItemClickListener, View.OnClickListener, TextView.OnEditorActionListener {
- public final static String TAG = "VLC/SavePlaylist";
+ public final static String TAG = "VLC/SavePlaylistDialog";
public static final String KEY_TRACKS = "PLAYLIST_TRACKS";
@@ -61,7 +61,7 @@ public class SavePlaylist extends DialogFragment implements AdapterView.OnItemCl
AudioBrowserListAdapter mAdapter;
ArrayList<MediaWrapper> mTracks;
- public SavePlaylist(){}
+ public SavePlaylistDialog(){}
@Override
public void onCreate(Bundle savedInstanceState) {
More information about the Android
mailing list