Merge "Disabled some DEBUG constants." into qt-qpr1-dev
This commit is contained in:
@@ -41,8 +41,7 @@ final class DisabledWallpaperManager extends WallpaperManager {
|
|||||||
// Don't need to worry about synchronization
|
// Don't need to worry about synchronization
|
||||||
private static DisabledWallpaperManager sInstance;
|
private static DisabledWallpaperManager sInstance;
|
||||||
|
|
||||||
// TODO(b/138939803): STOPSHIP changed to false and/or remove it
|
private static final boolean DEBUG = false;
|
||||||
private static final boolean DEBUG = true;
|
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
static DisabledWallpaperManager getInstance() {
|
static DisabledWallpaperManager getInstance() {
|
||||||
@@ -66,10 +65,6 @@ final class DisabledWallpaperManager extends WallpaperManager {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(b/138939803): STOPSHIP methods below should not be necessary,
|
|
||||||
// callers should check if isWallpaperSupported(), consider removing them to keep this class
|
|
||||||
// simpler
|
|
||||||
|
|
||||||
private static <T> T unsupported() {
|
private static <T> T unsupported() {
|
||||||
if (DEBUG) Log.w(TAG, "unsupported method called; returning null", new Exception());
|
if (DEBUG) Log.w(TAG, "unsupported method called; returning null", new Exception());
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user