[Android] TV: Fix crash in preferences

Geoffrey Métais git at videolan.org
Tue May 31 18:27:02 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May 31 14:45:13 2016 +0200| [9ff259f4dc27f190ea21c1ec033255cb6742f63e] | committer: Geoffrey Métais

TV: Fix crash in preferences

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

 vlc-android/src/org/videolan/vlc/gui/tv/preferences/Advanced.java      | 3 +--
 .../src/org/videolan/vlc/gui/tv/preferences/PreferencesFragment.java   | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/preferences/Advanced.java b/vlc-android/src/org/videolan/vlc/gui/tv/preferences/Advanced.java
index 7f4b983..3c62363 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/preferences/Advanced.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/preferences/Advanced.java
@@ -41,7 +41,6 @@ import org.videolan.vlc.BuildConfig;
 import org.videolan.vlc.R;
 import org.videolan.vlc.gui.helpers.AudioUtil;
 import org.videolan.vlc.gui.helpers.BitmapCache;
-import org.videolan.vlc.gui.helpers.UiTools;
 import org.videolan.vlc.media.MediaDatabase;
 import org.videolan.vlc.util.Util;
 import org.videolan.vlc.util.VLCInstance;
@@ -122,7 +121,7 @@ public class Advanced extends BasePreferenceFragment implements SharedPreference
         setLocalePref.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
             @Override
             public boolean onPreferenceChange(Preference preference, Object newValue) {
-                UiTools.snacker(getView(), R.string.set_locale_popup);
+                Toast.makeText(getActivity(), R.string.set_locale_popup, Toast.LENGTH_SHORT).show();
                 return true;
             }
         });
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesFragment.java b/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesFragment.java
index 99dffca..b46bbe9 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesFragment.java
@@ -35,7 +35,6 @@ import android.support.v7.preference.PreferenceManager;
 import org.videolan.vlc.R;
 import org.videolan.vlc.VLCApplication;
 import org.videolan.vlc.gui.SecondaryActivity;
-import org.videolan.vlc.util.AndroidDevices;
 import org.videolan.vlc.util.Util;
 import org.videolan.vlc.util.VLCInstance;
 



More information about the Android mailing list