Merge "Lint fix: IS_DEBUG_DEVICE: Implied default locale"

am: 1194b218d6

Change-Id: I51e1d74955d14d631e90c5c70c7375ccb9d18470
This commit is contained in:
Tobias Dubois
2018-08-23 14:06:08 -07:00
committed by android-build-merger
+3 -2
View File
@@ -110,8 +110,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";