Commit a8e96aed authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Rename class to use VLC in capital

parent 34ea90aa
......@@ -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();
}
......
......@@ -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);
......
......@@ -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();
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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();
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment