Enable logging of InCallScreen creation/deletion in all builds
In normal operation, the InCallScreen should only ever get created once,
and should *never* get destroyed, since we never allow it to finish().
So increase the logging verbosity in onCreate and onDestroy to make it
clear (even in user builds) if we're getting created/destroyed more than
expected. This is helpful for debugging OOM issues like bug 3100957.
Bug: 3100957
Change-Id: I5dbfe14bcdeb89d0d4f32512638f7da4371f6283
diff --git a/src/com/android/phone/InCallScreen.java b/src/com/android/phone/InCallScreen.java
index e2c450f..202c33f 100755
--- a/src/com/android/phone/InCallScreen.java
+++ b/src/com/android/phone/InCallScreen.java
@@ -524,7 +524,7 @@
@Override
protected void onCreate(Bundle icicle) {
- if (DBG) log("onCreate()... this = " + this);
+ Log.i(LOG_TAG, "onCreate()... this = " + this);
Profiler.callScreenOnCreate();
@@ -965,7 +965,7 @@
@Override
protected void onDestroy() {
- if (DBG) log("onDestroy()...");
+ Log.i(LOG_TAG, "onDestroy()... this = " + this);
super.onDestroy();
// Set the magic flag that tells us NOT to handle any handler