From 31a6d1cb63a513712bad717a6239919fd5428fd1 Mon Sep 17 00:00:00 2001 From: Dave Bort Date: Mon, 13 Apr 2009 15:56:49 -0700 Subject: Browser: Remove references to android.util.Config The semantics of Config.DEBUG will be changing soon, and all other Config.* fields will become deprecated/hidden. BUG=1780938 --- src/com/android/browser/Browser.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/com/android/browser/Browser.java') diff --git a/src/com/android/browser/Browser.java b/src/com/android/browser/Browser.java index 32cee6700..524f78962 100644 --- a/src/com/android/browser/Browser.java +++ b/src/com/android/browser/Browser.java @@ -16,7 +16,6 @@ package com.android.browser; -import android.util.Config; import android.util.Log; import android.app.Application; @@ -30,6 +29,15 @@ public class Browser extends Application { private final static String LOGTAG = "browser"; + // Set to true to enable extra debugging. + final static boolean DEBUG = false; + + // Set to true to enable verbose logging. + final static boolean LOGV_ENABLED = DEBUG; + + // Set to true to enable extra debug logging. + final static boolean LOGD_ENABLED = true; + /** * Specifies a heap utilization ratio that works better * for the browser than the default ratio does. @@ -40,7 +48,7 @@ public class Browser extends Application { } public void onCreate() { - if (Config.LOGV) + if (LOGV_ENABLED) Log.v(LOGTAG, "Browser.onCreate: this=" + this); // Fix heap utilization for better heap size characteristics. VMRuntime.getRuntime().setTargetHeapUtilization( -- cgit v1.2.3