Commit 9ff259f4 authored by Geoffrey Métais's avatar Geoffrey Métais

TV: Fix crash in preferences

parent 6a7f17c2
......@@ -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;
}
});
......
......@@ -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;
......
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