Bug 830131 - Avoid null String comparison in InputMethods.java; r=cpeterson a=bbajaj
authorJim Chen <nchen@mozilla.com>
Tue, 15 Jan 2013 12:40:39 -0500
changeset 127336 45b35a3a46c7906992a00cb9c6e0b7fe426247ea
parent 127335 f4f89f5b0d0fa4240bb7e6d252260190d9949bd7
child 127337 26337130270a36239cc47d8468e1119a0d632434
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpeterson, bbajaj
bugs830131
milestone20.0a2
Bug 830131 - Avoid null String comparison in InputMethods.java; r=cpeterson a=bbajaj
mobile/android/base/InputMethods.java
--- a/mobile/android/base/InputMethods.java
+++ b/mobile/android/base/InputMethods.java
@@ -83,11 +83,11 @@ final class InputMethods {
         }
         // The locale may change while Firefox is running, but the device and OS should not. :)
         return sIsPreJellyBeanAsusTransformer && !Locale.getDefault().equals(Locale.US);
     }
 
     public static boolean needsSoftResetWorkaround(String inputMethod) {
         // Stock latin IME on Android 4.2 and above
         return Build.VERSION.SDK_INT >= 17 &&
-               inputMethod.equals(METHOD_STOCK_LATINIME);
+               METHOD_STOCK_LATINIME.equals(inputMethod);
     }
 }