cleanup and bugfixes
This commit is contained in:
parent
e217f12e71
commit
ead7f2ac6d
7 changed files with 58 additions and 67 deletions
|
|
@ -332,7 +332,7 @@ public class BRouterActivity extends Activity implements OnInitListener
|
|||
{
|
||||
showWaypointDatabaseHelp();
|
||||
}
|
||||
else if ( wpCount == -1 )
|
||||
else if ( wpCount == -1 || wpCount == -3 )
|
||||
{
|
||||
finish();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@ public class BRouterService extends Service
|
|||
@Override
|
||||
public String getTrackFromParams( Bundle params ) throws RemoteException
|
||||
{
|
||||
logBundle( params );
|
||||
|
||||
BRouterWorker worker = new BRouterWorker();
|
||||
|
||||
// get base dir from private file
|
||||
|
|
@ -227,6 +229,19 @@ public class BRouterService extends Service
|
|||
}
|
||||
}
|
||||
|
||||
private void logBundle( Bundle params )
|
||||
{
|
||||
if ( AppLogger.isLogging() )
|
||||
{
|
||||
for( String k : params.keySet() )
|
||||
{
|
||||
Object val = "remoteProfile".equals( k ) ? "<..cut..>" : params.get(k);
|
||||
String desc = "key=" + k + (val == null ? "" : " class=" + val.getClass() + " val=" + val.toString() );
|
||||
AppLogger.log( desc );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue