diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-01-05 14:36:02 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-01-09 14:27:56 -0800 |
commit | 49f19f0af96ccf9da78b62a4ac9f51e40b40adc5 (patch) | |
tree | 59e016e7dec851661d833fc7ec02c80daa171b0b /src/com/android/launcher3/Utilities.java | |
parent | e09bacc1ef50aa7c4fe551a7360d7f5613927ee9 (diff) | |
download | android_packages_apps_Trebuchet-49f19f0af96ccf9da78b62a4ac9f51e40b40adc5.tar.gz android_packages_apps_Trebuchet-49f19f0af96ccf9da78b62a4ac9f51e40b40adc5.tar.bz2 android_packages_apps_Trebuchet-49f19f0af96ccf9da78b62a4ac9f51e40b40adc5.zip |
Adding some logging around launcher restore
> Also enabling fileLog when the device is debug build (even when
launcher is not dogfood build)
Bug: 30735662
Change-Id: Ieab2c962d57f6f7f972f8111070d4ecbef06b3e7
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r-- | src/com/android/launcher3/Utilities.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java index 2cb913858..89ffd315d 100644 --- a/src/com/android/launcher3/Utilities.java +++ b/src/com/android/launcher3/Utilities.java @@ -104,6 +104,12 @@ public final class Utilities { public static final boolean ATLEAST_LOLLIPOP_MR1 = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1; + /** + * 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"); + // An intent extra to indicate the horizontal scroll of the wallpaper. public static final String EXTRA_WALLPAPER_OFFSET = "com.android.launcher3.WALLPAPER_OFFSET"; |