[Android] Add a clearData method in App singleton

Geoffrey Métais git at videolan.org
Fri Mar 10 12:01:37 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar 10 11:58:22 2017 +0100| [06d048c91578efdfe4f366a2828d06c520b76e9d] | committer: Geoffrey Métais

Add a clearData method in App singleton

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

 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 016ee6d..645ee58 100644
--- a/vlc-android/src/org/videolan/vlc/VLCApplication.java
+++ b/vlc-android/src/org/videolan/vlc/VLCApplication.java
@@ -196,6 +196,10 @@ public class VLCApplication extends Application {
         return sDataMap.remove(key);
     }
 
+    public static void clearData() {
+        sDataMap.clear();
+    }
+
     Dialog.Callbacks mDialogCallbacks = new Dialog.Callbacks() {
         @Override
         public void onDisplay(Dialog.ErrorMessage dialog) {



More information about the Android mailing list