check for moves when come to foreground

This commit is contained in:
Eric House 2019-01-15 14:34:50 -08:00
parent e61d7a5629
commit c611919876

View file

@ -100,6 +100,10 @@ public class XWApp extends Application implements LifecycleObserver {
switch( event ) { switch( event ) {
case ON_RESUME: case ON_RESUME:
BTService.onAppToForeground( this ); BTService.onAppToForeground( this );
// Do here what checkForMoves does
if ( null != DBUtils.getRelayIDs( this, null ) ) {
RelayService.timerFired( this );
}
break; break;
case ON_STOP: case ON_STOP:
BTService.onAppToBackground( this ); BTService.onAppToBackground( this );