summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2018-08-23 20:51:01 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-08-23 20:51:01 +0000
commit25cb600f5004105d759d677dc3fca6c1cd374101 (patch)
tree8b4d2bbfd1f34a8eff0202f5a84ddd8781db69d0 /src
parentfb65fd3505c946244533e5c0fb534b5594a484a3 (diff)
parent9c0ad56d11b3b8bf3d8415aed0c17d8e78d8914c (diff)
downloadandroid_packages_apps_Trebuchet-25cb600f5004105d759d677dc3fca6c1cd374101.tar.gz
android_packages_apps_Trebuchet-25cb600f5004105d759d677dc3fca6c1cd374101.tar.bz2
android_packages_apps_Trebuchet-25cb600f5004105d759d677dc3fca6c1cd374101.zip
Merge "Lint fix: IS_DEBUG_DEVICE: Implied default locale" into ub-launcher3-master
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/Utilities.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java
index 1c1246434..74fc8d108 100644
--- a/src/com/android/launcher3/Utilities.java
+++ b/src/com/android/launcher3/Utilities.java
@@ -114,8 +114,9 @@ public final class Utilities {
* Indicates if the device has a debug build. Should only be used to store additional info or
* add extra logging and not for changing the app behavior.
*/
- public static final boolean IS_DEBUG_DEVICE = Build.TYPE.toLowerCase().contains("debug")
- || Build.TYPE.toLowerCase().equals("eng");
+ public static final boolean IS_DEBUG_DEVICE =
+ Build.TYPE.toLowerCase(Locale.ROOT).contains("debug") ||
+ Build.TYPE.toLowerCase(Locale.ROOT).equals("eng");
// An intent extra to indicate the horizontal scroll of the wallpaper.
public static final String EXTRA_WALLPAPER_OFFSET = "com.android.launcher3.WALLPAPER_OFFSET";