diff --git a/xwords4/android/app/build.gradle b/xwords4/android/app/build.gradle index 31f93933b..386969f13 100644 --- a/xwords4/android/app/build.gradle +++ b/xwords4/android/app/build.gradle @@ -72,6 +72,7 @@ android { resValue "string", "invite_prefix", "/and/" buildConfigField "boolean", "UDP_ENABLED", "true" buildConfigField "boolean", "REPORT_LOCKS", "false" + buildConfigField "boolean", "LOG_LIFECYLE", "false" } xw4 { 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 0d179cac3..78bd8b095 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 @@ -49,7 +49,7 @@ public class XWActivity extends FragmentActivity protected void onCreate( Bundle savedInstanceState, DelegateBase dlgt ) { - if ( XWApp.LOG_LIFECYLE ) { + if ( BuildConfig.LOG_LIFECYLE ) { Log.i( TAG, "%s.onCreate(this=%H,sis=%s)", getClass().getSimpleName(), this, savedInstanceState ); } @@ -69,7 +69,7 @@ public class XWActivity extends FragmentActivity @Override protected void onSaveInstanceState( Bundle outState ) { - if ( XWApp.LOG_LIFECYLE ) { + if ( BuildConfig.LOG_LIFECYLE ) { Log.i( TAG, "%s.onSaveInstanceState(this=%H)", getClass().getSimpleName(), this ); } @@ -80,7 +80,7 @@ public class XWActivity extends FragmentActivity @Override protected void onPause() { - if ( XWApp.LOG_LIFECYLE ) { + if ( BuildConfig.LOG_LIFECYLE ) { Log.i( TAG, "%s.onPause(this=%H)", getClass().getSimpleName(), this ); } @@ -92,7 +92,7 @@ public class XWActivity extends FragmentActivity @Override protected void onResume() { - if ( XWApp.LOG_LIFECYLE ) { + if ( BuildConfig.LOG_LIFECYLE ) { Log.i( TAG, "%s.onResume(this=%H)", getClass().getSimpleName(), this ); } @@ -104,7 +104,7 @@ public class XWActivity extends FragmentActivity @Override protected void onPostResume() { - if ( XWApp.LOG_LIFECYLE ) { + if ( BuildConfig.LOG_LIFECYLE ) { Log.i( TAG, "%s.onPostResume(this=%H)", getClass().getSimpleName(), this ); } @@ -114,7 +114,7 @@ public class XWActivity extends FragmentActivity @Override protected void onStart() { - if ( XWApp.LOG_LIFECYLE ) { + if ( BuildConfig.LOG_LIFECYLE ) { Log.i( TAG, "%s.onStart(this=%H)", getClass().getSimpleName(), this ); } super.onStart(); @@ -124,7 +124,7 @@ public class XWActivity extends FragmentActivity @Override protected void onStop() { - if ( XWApp.LOG_LIFECYLE ) { + if ( BuildConfig.LOG_LIFECYLE ) { Log.i( TAG, "%s.onStop(this=%H)", getClass().getSimpleName(), this ); } m_dlgt.onStop(); @@ -134,7 +134,7 @@ public class XWActivity extends FragmentActivity @Override protected void onDestroy() { - if ( XWApp.LOG_LIFECYLE ) { + if ( BuildConfig.LOG_LIFECYLE ) { Log.i( TAG, "%s.onDestroy(this=%H)", getClass().getSimpleName(), this ); } m_dlgt.onDestroy(); diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWApp.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWApp.java index 869d6b7ce..27da03b1a 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWApp.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/XWApp.java @@ -46,7 +46,6 @@ public class XWApp extends Application public static final boolean BTSUPPORTED = true; public static final boolean ATTACH_SUPPORTED = false; - public static final boolean LOG_LIFECYLE = false; public static final boolean DEBUG_EXP_TIMERS = false; public static final boolean LOCUTILS_ENABLED = false; public static final boolean CONTEXT_MENUS_ENABLED = true;