cleanup and bugfixes

This commit is contained in:
Arndt Brenschede 2016-09-02 19:05:50 +02:00
parent e217f12e71
commit ead7f2ac6d
7 changed files with 58 additions and 67 deletions

View file

@ -332,7 +332,7 @@ public class BRouterActivity extends Activity implements OnInitListener
{
showWaypointDatabaseHelp();
}
else if ( wpCount == -1 )
else if ( wpCount == -1 || wpCount == -3 )
{
finish();
}

View file

@ -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