mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
new printStack() required for prev commit
This commit is contained in:
parent
4cdafbd510
commit
997365bc20
1 changed files with 8 additions and 2 deletions
|
@ -83,16 +83,22 @@ public class Utils {
|
||||||
}
|
}
|
||||||
} // logf
|
} // logf
|
||||||
|
|
||||||
public static void printStack()
|
public static void printStack( StackTraceElement[] trace )
|
||||||
{
|
{
|
||||||
if ( s_doLog ) {
|
if ( s_doLog ) {
|
||||||
StackTraceElement[] trace = Thread.currentThread().getStackTrace();
|
|
||||||
for ( int ii = 0; ii < trace.length; ++ii ) {
|
for ( int ii = 0; ii < trace.length; ++ii ) {
|
||||||
Utils.logf( "ste %d: %s", ii, trace[ii].toString() );
|
Utils.logf( "ste %d: %s", ii, trace[ii].toString() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void printStack()
|
||||||
|
{
|
||||||
|
if ( s_doLog ) {
|
||||||
|
printStack( Thread.currentThread().getStackTrace() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void notImpl( Context context )
|
public static void notImpl( Context context )
|
||||||
{
|
{
|
||||||
CharSequence text = "Feature coming soon";
|
CharSequence text = "Feature coming soon";
|
||||||
|
|
Loading…
Add table
Reference in a new issue