[Android] Add hasData() in datamap

Geoffrey Métais git at videolan.org
Wed Jul 12 15:06:23 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jul 12 15:04:18 2017 +0200| [a0b4b589e4f6cad5aefe91bcc2d048c2193d7410] | committer: Geoffrey Métais

Add hasData() in datamap

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

 vlc-android/src/org/videolan/vlc/VLCApplication.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/VLCApplication.java b/vlc-android/src/org/videolan/vlc/VLCApplication.java
index 087abdcbf..16723bb46 100644
--- a/vlc-android/src/org/videolan/vlc/VLCApplication.java
+++ b/vlc-android/src/org/videolan/vlc/VLCApplication.java
@@ -177,6 +177,10 @@ public class VLCApplication extends Application {
         return sDataMap.remove(key);
     }
 
+    public static boolean hasData(String key) {
+        return sDataMap.containsKey(key);
+    }
+
     public static void clearData() {
         sDataMap.clear();
     }



More information about the Android mailing list