[Android] Set snackbar action nullable

Geoffrey Métais git at videolan.org
Thu Dec 1 16:21:25 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Dec  1 16:19:19 2016 +0100| [e21f1dcd9ec58a8e6d1afc2dc88ce42c31325a03] | committer: Geoffrey Métais

Set snackbar action nullable

> https://code.videolan.org/videolan/vlc-android/commit/e21f1dcd9ec58a8e6d1afc2dc88ce42c31325a03
---

 vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java b/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
index b957347..463fdab 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
@@ -89,7 +89,7 @@ public class UiTools {
     }
 
     /** Print an on-screen message to alert the user, with undo action */
-    public static void snackerWithCancel(@NonNull View view, @NonNull String message, @NonNull final Runnable action, @Nullable final Runnable cancelAction) {
+    public static void snackerWithCancel(@NonNull View view, @NonNull String message, @Nullable final Runnable action, @Nullable final Runnable cancelAction) {
         Snackbar.make(view, message, DELETE_DURATION)
                 .setAction(android.R.string.cancel, new View.OnClickListener() {
                     @Override



More information about the Android mailing list