new printStack() required for prev commit

This commit is contained in:
Andy2 2011-03-04 18:36:53 -08:00
parent 4cdafbd510
commit 997365bc20

View file

@ -83,16 +83,22 @@ public class Utils {
}
} // logf
public static void printStack()
public static void printStack( StackTraceElement[] trace )
{
if ( s_doLog ) {
StackTraceElement[] trace = Thread.currentThread().getStackTrace();
for ( int ii = 0; ii < trace.length; ++ii ) {
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 )
{
CharSequence text = "Feature coming soon";