[Android] Rename method to avoid confusing between getter and setter

Jean-Baptiste Kempf git at videolan.org
Tue Oct 2 16:33:04 CEST 2012


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Oct  2 16:32:42 2012 +0200| [2c7f2e7a08a725b608f3cbe1b5384637d491ca21] | committer: Jean-Baptiste Kempf

Rename method to avoid confusing between getter and setter

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

 vlc-android/src/org/videolan/vlc/LibVLC.java                  |    3 +--
 vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/LibVLC.java b/vlc-android/src/org/videolan/vlc/LibVLC.java
index 174703f..ec2fc38 100644
--- a/vlc-android/src/org/videolan/vlc/LibVLC.java
+++ b/vlc-android/src/org/videolan/vlc/LibVLC.java
@@ -23,7 +23,6 @@ package org.videolan.vlc;
 import java.util.ArrayList;
 
 import org.videolan.vlc.gui.video.VideoPlayerActivity;
-import org.videolan.vlc.LibVlcException;
 
 import android.content.Context;
 import android.content.SharedPreferences;
@@ -147,7 +146,7 @@ public class LibVLC {
         return sUseIomx;
     }
 
-    public static synchronized void useIOMX(boolean enable) {
+    public static synchronized void setIOMX(boolean enable) {
         sUseIomx = enable;
     }
 
diff --git a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
index 96aa32e..74592fa 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
@@ -112,7 +112,7 @@ public class PreferencesActivity extends PreferenceActivity {
                     @Override
                     public boolean onPreferenceClick(Preference preference) {
                         CheckBoxPreference checkboxHW = (CheckBoxPreference) preference;
-                        LibVLC.useIOMX(checkboxHW.isChecked());
+                        LibVLC.setIOMX(checkboxHW.isChecked());
                         return true;
                     }
                 });



More information about the Android mailing list