[Android] Rename class to use VLC in capital

Jean-Baptiste Kempf git at videolan.org
Sat Jul 12 00:28:10 CEST 2014


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jul 12 00:27:16 2014 +0200| [a8e96aed7abd457ac840c9d6ea73b3b46c5e0b13] | committer: Jean-Baptiste Kempf

Rename class to use VLC in capital

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

 .../videolan/vlc/{VlcCrashHandler.java => VLCCrashHandler.java}  |    4 ++--
 vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java          |    4 ++--
 vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java  |    4 ++--
 .../src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java |    4 ++--
 .../src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java     |    4 ++--
 .../src/org/videolan/vlc/gui/video/VideoGridFragment.java        |    4 ++--
 vlc-android/src/org/videolan/vlc/util/VLCInstance.java           |    4 ++--
 .../org/videolan/vlc/util/{VlcRunnable.java => VLCRunnable.java} |    6 +++---
 8 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/VlcCrashHandler.java b/vlc-android/src/org/videolan/vlc/VLCCrashHandler.java
similarity index 97%
rename from vlc-android/src/org/videolan/vlc/VlcCrashHandler.java
rename to vlc-android/src/org/videolan/vlc/VLCCrashHandler.java
index 234512b..4638268 100644
--- a/vlc-android/src/org/videolan/vlc/VlcCrashHandler.java
+++ b/vlc-android/src/org/videolan/vlc/VLCCrashHandler.java
@@ -35,13 +35,13 @@ import android.os.Environment;
 import android.text.format.DateFormat;
 import android.util.Log;
 
-public class VlcCrashHandler implements UncaughtExceptionHandler {
+public class VLCCrashHandler implements UncaughtExceptionHandler {
 
     private static final String TAG = "VLC/VlcCrashHandler";
 
     private UncaughtExceptionHandler defaultUEH;
 
-    public VlcCrashHandler() {
+    public VLCCrashHandler() {
         this.defaultUEH = Thread.getDefaultUncaughtExceptionHandler();
     }
 
diff --git a/vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java b/vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java
index be4e5d4..c118a09 100644
--- a/vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java
+++ b/vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java
@@ -27,7 +27,7 @@ import java.net.URISyntaxException;
 import org.videolan.vlc.R;
 import org.videolan.vlc.interfaces.OnExpandableListener;
 import org.videolan.vlc.util.Util;
-import org.videolan.vlc.util.VlcRunnable;
+import org.videolan.vlc.util.VLCRunnable;
 import org.videolan.vlc.widget.ExpandableLayout;
 
 import android.app.Activity;
@@ -58,7 +58,7 @@ public class CommonDialogs {
 
     public static AlertDialog deleteMedia(final Context context,
                                           final String addressMedia,
-                                          final VlcRunnable runnable) {
+                                          final VLCRunnable runnable) {
         URI adressMediaUri = null;
         try {
             adressMediaUri = new URI (addressMedia);
diff --git a/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java b/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
index 6b6048a..ea38de5 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
@@ -29,7 +29,7 @@ import org.videolan.vlc.audio.AudioServiceController;
 import org.videolan.vlc.gui.video.VideoPlayerActivity;
 import org.videolan.vlc.interfaces.ISortable;
 import org.videolan.vlc.util.Util;
-import org.videolan.vlc.util.VlcRunnable;
+import org.videolan.vlc.util.VLCRunnable;
 
 import android.app.AlertDialog;
 import android.content.BroadcastReceiver;
@@ -139,7 +139,7 @@ public class DirectoryViewFragment extends ListFragment implements ISortable {
             return true;
         } else if(id == R.id.directory_view_delete) {
             AlertDialog alertDialog = CommonDialogs.deleteMedia(getActivity(), mediaLocation,
-                    new VlcRunnable() {
+                    new VLCRunnable() {
                         @Override
                         public void run(Object o) {
                             refresh();
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
index eea9b8b..4851c4d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
@@ -32,7 +32,7 @@ import org.videolan.vlc.audio.AudioServiceController;
 import org.videolan.vlc.gui.CommonDialogs;
 import org.videolan.vlc.gui.MainActivity;
 import org.videolan.vlc.util.AndroidDevices;
-import org.videolan.vlc.util.VlcRunnable;
+import org.videolan.vlc.util.VLCRunnable;
 import org.videolan.vlc.widget.FlingViewGroup;
 
 import android.annotation.TargetApi;
@@ -264,7 +264,7 @@ public class AudioAlbumsSongsFragment extends Fragment {
             AlertDialog alertDialog = CommonDialogs.deleteMedia(
                     getActivity(),
                     mSongsAdapter.getLocations(groupPosition).get(0),
-                    new VlcRunnable(mSongsAdapter.getItem(groupPosition)) {
+                    new VLCRunnable(mSongsAdapter.getItem(groupPosition)) {
                         @Override
                         public void run(Object o) {
                             AudioBrowserListAdapter.ListItem listItem = (AudioBrowserListAdapter.ListItem)o;
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 16a2062..187f5a0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -32,7 +32,7 @@ import org.videolan.vlc.audio.AudioServiceController;
 import org.videolan.vlc.gui.CommonDialogs;
 import org.videolan.vlc.gui.MainActivity;
 import org.videolan.vlc.util.AndroidDevices;
-import org.videolan.vlc.util.VlcRunnable;
+import org.videolan.vlc.util.VLCRunnable;
 import org.videolan.vlc.util.WeakHandler;
 import org.videolan.vlc.widget.FlingViewGroup;
 import org.videolan.vlc.widget.FlingViewGroup.ViewSwitchListener;
@@ -264,7 +264,7 @@ public class AudioBrowserFragment extends Fragment {
             AlertDialog alertDialog = CommonDialogs.deleteMedia(
                     getActivity(),
                     mSongsAdapter.getLocations(groupPosition).get(0),
-                    new VlcRunnable(mSongsAdapter.getItem(groupPosition)) {
+                    new VLCRunnable(mSongsAdapter.getItem(groupPosition)) {
                         @Override
                         public void run(Object o) {
                             AudioBrowserListAdapter.ListItem listItem = (AudioBrowserListAdapter.ListItem)o;
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 ddce5e4..bec35cd 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -39,7 +39,7 @@ import org.videolan.vlc.gui.CommonDialogs;
 import org.videolan.vlc.gui.MainActivity;
 import org.videolan.vlc.interfaces.ISortable;
 import org.videolan.vlc.util.Util;
-import org.videolan.vlc.util.VlcRunnable;
+import org.videolan.vlc.util.VLCRunnable;
 import org.videolan.vlc.util.WeakHandler;
 
 import android.annotation.TargetApi;
@@ -308,7 +308,7 @@ public class VideoGridFragment extends SherlockGridFragment implements ISortable
             AlertDialog alertDialog = CommonDialogs.deleteMedia(
                     getActivity(),
                     media.getLocation(),
-                    new VlcRunnable(media) {
+                    new VLCRunnable(media) {
                         @Override
                         public void run(Object o) {
                             Media media = (Media) o;
diff --git a/vlc-android/src/org/videolan/vlc/util/VLCInstance.java b/vlc-android/src/org/videolan/vlc/util/VLCInstance.java
index 3d5451e..91b0913 100644
--- a/vlc-android/src/org/videolan/vlc/util/VLCInstance.java
+++ b/vlc-android/src/org/videolan/vlc/util/VLCInstance.java
@@ -23,7 +23,7 @@ package org.videolan.vlc.util;
 import org.videolan.libvlc.LibVLC;
 import org.videolan.libvlc.LibVlcException;
 import org.videolan.vlc.VLCApplication;
-import org.videolan.vlc.VlcCrashHandler;
+import org.videolan.vlc.VLCCrashHandler;
 import org.videolan.vlc.gui.NativeCrashActivity;
 
 import android.content.Context;
@@ -37,7 +37,7 @@ public class VLCInstance {
     public static LibVLC getLibVlcInstance() throws LibVlcException {
         LibVLC instance = LibVLC.getExistingInstance();
         if (instance == null) {
-            Thread.setDefaultUncaughtExceptionHandler(new VlcCrashHandler());
+            Thread.setDefaultUncaughtExceptionHandler(new VLCCrashHandler());
 
             instance = LibVLC.getInstance();
             final Context context = VLCApplication.getAppContext();
diff --git a/vlc-android/src/org/videolan/vlc/util/VlcRunnable.java b/vlc-android/src/org/videolan/vlc/util/VLCRunnable.java
similarity index 91%
rename from vlc-android/src/org/videolan/vlc/util/VlcRunnable.java
rename to vlc-android/src/org/videolan/vlc/util/VLCRunnable.java
index dd10ee4..ec7201a 100644
--- a/vlc-android/src/org/videolan/vlc/util/VlcRunnable.java
+++ b/vlc-android/src/org/videolan/vlc/util/VLCRunnable.java
@@ -19,14 +19,14 @@
  *****************************************************************************/
 package org.videolan.vlc.util;
 
-public abstract class VlcRunnable implements Runnable {
+public abstract class VLCRunnable implements Runnable {
     private final Object user;
 
-    public VlcRunnable() {
+    public VLCRunnable() {
         this.user = null;
     }
 
-    public VlcRunnable(Object o) {
+    public VLCRunnable(Object o) {
         this.user = o;
     }
 



More information about the Android mailing list