[Android] Material dialog for playlist saving

Geoffrey Métais git at videolan.org
Mon May 4 13:55:48 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon May  4 11:00:47 2015 +0200| [c01de2043a8a032832da5b26543bddf43d1cb2d0] | committer: Geoffrey Métais

Material dialog for playlist saving

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c01de2043a8a032832da5b26543bddf43d1cb2d0
---

 .../src/org/videolan/vlc/gui/dialogs/SavePlaylist.java      |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/SavePlaylist.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/SavePlaylist.java
index af7de33..63f9fd8 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/SavePlaylist.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/SavePlaylist.java
@@ -23,9 +23,12 @@
 
 package org.videolan.vlc.gui.dialogs;
 
+import android.app.Dialog;
 import android.os.Bundle;
+import android.support.annotation.NonNull;
 import android.support.annotation.Nullable;
 import android.support.v4.app.DialogFragment;
+import android.support.v7.app.AppCompatDialog;
 import android.view.KeyEvent;
 import android.view.LayoutInflater;
 import android.view.View;
@@ -69,9 +72,15 @@ public class SavePlaylist extends DialogFragment implements AdapterView.OnItemCl
         mTracks = getArguments().getParcelableArrayList(KEY_TRACKS);
     }
 
+    @NonNull
+    @Override
+    public Dialog onCreateDialog(Bundle savedInstanceState) {
+        return new AppCompatDialog(getActivity(), getTheme());
+
+    }
+
     @Override
     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
-        getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);
         View view = inflater.inflate(R.layout.dialog_playlist, container);
 
         mListView = (ListView) view.findViewById(android.R.id.list);



More information about the Android mailing list