Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d38f791b authored by Tobias Dubois's avatar Tobias Dubois Committed by Ed Savage-Jones
Browse files

Lint fix: IS_DEBUG_DEVICE: Implied default locale

Use the ROOT locale to make sure toLowerCase has consistent behavior
regardless of the currently set language.

Test: Manual
Change-Id: Ie43f76cbc15eee0d96314e92d2acd5abb22f7077
parent c73828fd
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -109,8 +109,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";