[Android] Sync snackbars with media deletion

Geoffrey Métais git at videolan.org
Fri Aug 21 14:47:52 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Aug 21 14:22:26 2015 +0200| [e59787489ada61961dbd1342cb52acc50e3a0493] | committer: Geoffrey Métais

Sync snackbars with media deletion

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

 vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java |    2 +-
 vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
index 10d0c39..b322bca 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -428,7 +428,7 @@ public class AudioBrowserFragment extends MediaBrowserFragment implements SwipeR
                 return false;
             Message msg;
             if (mode == MODE_PLAYLIST) {
-                Snackbar.make(getView(), getString(R.string.playlist_deleted), Snackbar.LENGTH_LONG)
+                Snackbar.make(getView(), getString(R.string.playlist_deleted), DELETE_DURATION)
                 .setAction(android.R.string.cancel, mCancelDeletePlayListListener)
                 .show();
                 msg = mHandler.obtainMessage(DELETE_PLAYLIST, position, 0);
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
index bd487f8..52aeb74 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -320,7 +320,7 @@ public class VideoGridFragment extends MediaBrowserFragment implements ISortable
                 }
                 return true;
             case R.id.video_list_delete:
-                Snackbar.make(getView(), getString(R.string.file_deleted), Snackbar.LENGTH_LONG)
+                Snackbar.make(getView(), getString(R.string.file_deleted), DELETE_DURATION)
                     .setAction(android.R.string.cancel, mCancelDeleteMediaListener)
                     .show();
                 Message msg = mDeleteHandler.obtainMessage(DELETE_MEDIA, position, 0);



More information about the Android mailing list