From 41683f95a7c32936aeee1a68837b6d9c24305c9c Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 5 Jun 2017 07:36:47 -0700 Subject: [PATCH] improve activity lifecycle logging --- .../java/org/eehouse/android/xw4/XWActivity.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWActivity.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWActivity.java index bdcf44865..f017bf9dd 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWActivity.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWActivity.java @@ -71,7 +71,8 @@ public class XWActivity extends FragmentActivity protected void onSaveInstanceState( Bundle outState ) { if ( XWApp.LOG_LIFECYLE ) { - Log.i( TAG, "onSaveInstanceState(this=%H)", this ); + Log.i( TAG, "%s.onSaveInstanceState(this=%H)", + getClass().getSimpleName(), this ); } m_dlgt.onSaveInstanceState( outState ); super.onSaveInstanceState( outState ); @@ -81,7 +82,8 @@ public class XWActivity extends FragmentActivity protected void onPause() { if ( XWApp.LOG_LIFECYLE ) { - Log.i( TAG, "onPause(this=%H)", this ); + Log.i( TAG, "%s.onPause(this=%H)", getClass().getSimpleName(), + this ); } m_dlgt.onPause(); super.onPause(); @@ -92,7 +94,8 @@ public class XWActivity extends FragmentActivity protected void onResume() { if ( XWApp.LOG_LIFECYLE ) { - Log.i( TAG, "onResume(this=%H)", this ); + Log.i( TAG, "%s.onResume(this=%H)", getClass().getSimpleName(), + this ); } super.onResume(); WiDirWrapper.activityResumed( this ); @@ -103,7 +106,8 @@ public class XWActivity extends FragmentActivity protected void onPostResume() { if ( XWApp.LOG_LIFECYLE ) { - Log.i( TAG, "onPostResume(this=%H)", this ); + Log.i( TAG, "%s.onPostResume(this=%H)", + getClass().getSimpleName(), this ); } super.onPostResume(); } @@ -132,7 +136,7 @@ public class XWActivity extends FragmentActivity protected void onDestroy() { if ( XWApp.LOG_LIFECYLE ) { - Log.i( TAG, "onDestroy(this=%H)", this ); + Log.i( TAG, "%s.onDestroy(this=%H)", getClass().getSimpleName(), this ); } m_dlgt.onDestroy(); super.onDestroy();