diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java index fbaf22e46..3c943c309 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DelegateBase.java @@ -245,7 +245,8 @@ public class DelegateBase implements DlgClickNotify, { int[] containerDims = getContainerDims( new int[2] ); boolean result = containerDims[0] < containerDims[1]; - DbgUtils.logdf( "%s.isPortrait() => %b", getClass().getName(), result ); + DbgUtils.logdf( "%s.isPortrait() => %b", + getClass().getSimpleName(), result ); return result; } @@ -260,7 +261,7 @@ public class DelegateBase implements DlgClickNotify, outDims[1] = rect.height(); } DbgUtils.logdf( "%s.getContainerDims(): width => %d, height => %d", - getClass().getName(), outDims[0], outDims[1] ); + getClass().getSimpleName(), outDims[0], outDims[1] ); return outDims; } diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java index 293e38bf8..f62f8a06b 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GamesListDelegate.java @@ -1519,7 +1519,7 @@ public class GamesListDelegate extends ListDelegateBase = (AdapterView.AdapterContextMenuInfo)menuInfo; View targetView = info.targetView; DbgUtils.logf( "onCreateContextMenu(t=%s)", - targetView.getClass().getName() ); + targetView.getClass().getSimpleName() ); if ( targetView instanceof GameListItem ) { item = (GameListItem)targetView; id = R.menu.games_list_game_menu; diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWActivity.java index e70dc97f1..3f831302e 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWActivity.java @@ -43,7 +43,8 @@ public class XWActivity extends FragmentActivity implements Delegator { protected void onCreate( Bundle savedInstanceState, DelegateBase dlgt ) { if ( XWApp.LOG_LIFECYLE ) { - DbgUtils.logf( "%s.onCreate(this=%H)", getClass().getName(), this ); + DbgUtils.logf( "%s.onCreate(this=%H)", + getClass().getSimpleName(), this ); } super.onCreate( savedInstanceState ); m_dlgt = dlgt; @@ -67,7 +68,8 @@ public class XWActivity extends FragmentActivity implements Delegator { protected void onPause() { if ( XWApp.LOG_LIFECYLE ) { - DbgUtils.logf( "%s.onPause(this=%H)", getClass().getName(), this ); + DbgUtils.logf( "%s.onPause(this=%H)", + getClass().getSimpleName(), this ); } m_dlgt.onPause(); super.onPause(); @@ -77,7 +79,8 @@ public class XWActivity extends FragmentActivity implements Delegator { protected void onResume() { if ( XWApp.LOG_LIFECYLE ) { - DbgUtils.logf( "%s.onResume(this=%H)", getClass().getName(), this ); + DbgUtils.logf( "%s.onResume(this=%H)", + getClass().getSimpleName(), this ); } super.onResume(); m_dlgt.onResume(); @@ -87,7 +90,8 @@ public class XWActivity extends FragmentActivity implements Delegator { protected void onStart() { if ( XWApp.LOG_LIFECYLE ) { - DbgUtils.logf( "%s.onStart(this=%H)", getClass().getName(), this ); + DbgUtils.logf( "%s.onStart(this=%H)", + getClass().getSimpleName(), this ); } super.onStart(); m_dlgt.onStart(); @@ -97,7 +101,8 @@ public class XWActivity extends FragmentActivity implements Delegator { protected void onStop() { if ( XWApp.LOG_LIFECYLE ) { - DbgUtils.logf( "%s.onStop(this=%H)", getClass().getName(), this ); + DbgUtils.logf( "%s.onStop(this=%H)", + getClass().getSimpleName(), this ); } m_dlgt.onStop(); super.onStop(); @@ -107,7 +112,8 @@ public class XWActivity extends FragmentActivity implements Delegator { protected void onDestroy() { if ( XWApp.LOG_LIFECYLE ) { - DbgUtils.logf( "%s.onDestroy(this=%H)", getClass().getName(), this ); + DbgUtils.logf( "%s.onDestroy(this=%H)", + getClass().getSimpleName(), this ); } m_dlgt.onDestroy(); super.onDestroy(); diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWFragment.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWFragment.java index 8eb10541c..c70a2092e 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWFragment.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/XWFragment.java @@ -49,7 +49,7 @@ public class XWFragment extends Fragment protected void onCreate( DelegateBase dlgt, Bundle sis ) { - DbgUtils.logdf( "%s.onCreate() called", this.getClass().getName() ); + DbgUtils.logdf( "%s.onCreate() called", this.getClass().getSimpleName() ); super.onCreate( sis ); m_dlgt = dlgt; } @@ -58,14 +58,15 @@ public class XWFragment extends Fragment public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState ) { - DbgUtils.logdf( "%s.onCreateView() called", this.getClass().getName() ); + DbgUtils.logdf( "%s.onCreateView() called", this.getClass().getSimpleName() ); return m_dlgt.inflateView( inflater, container ); } @Override public void onActivityCreated( Bundle savedInstanceState ) { - DbgUtils.logdf( "%s.onActivityCreated() called", this.getClass().getName() ); + DbgUtils.logdf( "%s.onActivityCreated() called", + this.getClass().getSimpleName() ); m_dlgt.init( savedInstanceState ); super.onActivityCreated( savedInstanceState ); if ( m_hasOptionsMenu ) { @@ -76,7 +77,8 @@ public class XWFragment extends Fragment @Override public void onPause() { - DbgUtils.logdf( "%s.onPause() called", this.getClass().getName() ); + DbgUtils.logdf( "%s.onPause() called", + this.getClass().getSimpleName() ); m_dlgt.onPause(); super.onPause(); } @@ -91,7 +93,8 @@ public class XWFragment extends Fragment @Override public void onStart() { - DbgUtils.logdf( "%s.onStart() called", this.getClass().getName() ); + DbgUtils.logdf( "%s.onStart() called", + this.getClass().getSimpleName() ); super.onStart(); m_dlgt.onStart(); } @@ -99,7 +102,8 @@ public class XWFragment extends Fragment @Override public void onStop() { - DbgUtils.logdf( "%s.onStop() called", this.getClass().getName() ); + DbgUtils.logdf( "%s.onStop() called", + this.getClass().getSimpleName() ); m_dlgt.onStop(); super.onStop(); } @@ -107,7 +111,8 @@ public class XWFragment extends Fragment @Override public void onDestroy() { - DbgUtils.logdf( "%s.onDestroy() called", this.getClass().getName() ); + DbgUtils.logdf( "%s.onDestroy() called", + this.getClass().getSimpleName() ); m_dlgt.onDestroy(); super.onDestroy(); } diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java index 8143b56a3..5e62a9eb3 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java @@ -193,7 +193,7 @@ public class LocUtils { // DbgUtils.logf( "xlateView(%s, %s)", context.getClass().getName(), // view.getClass().getName() ); if ( XWApp.LOCUTILS_ENABLED ) { - xlateView( context, context.getClass().getName(), view, 0 ); + xlateView( context, context.getClass().getSimpleName(), view, 0 ); } }