fix sleep time not working

change condition check while receiving pendingIntent in OnStartCommand.