[Android] VLCApplication: remove unnecessary null check

Jean-Baptiste Kempf git at videolan.org
Thu Jun 11 21:42:44 CEST 2015


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jun 11 21:33:37 2015 +0200| [211ce474e78011407118f195284f2059bcab5e45] | committer: Jean-Baptiste Kempf

VLCApplication: remove unnecessary null check

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

 vlc-android/src/org/videolan/vlc/VLCApplication.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/VLCApplication.java b/vlc-android/src/org/videolan/vlc/VLCApplication.java
index 6951ade..cd25b99 100644
--- a/vlc-android/src/org/videolan/vlc/VLCApplication.java
+++ b/vlc-android/src/org/videolan/vlc/VLCApplication.java
@@ -50,7 +50,7 @@ public class VLCApplication extends Application {
         // Are we using advanced debugging - locale?
         SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);
         String p = pref.getString("set_locale", "");
-        if (p != null && !p.equals("")) {
+        if (!p.equals("")) {
             Locale locale;
             // workaround due to region code
             if(p.equals("zh-TW")) {



More information about the Android mailing list