mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-07 21:28:49 +00:00
NearestFavoriteStationWidgetService: Log how long the widget waited for a location until it timed out.
This commit is contained in:
parent
6964f22f5a
commit
6c5fcbaae4
1 changed files with 2 additions and 1 deletions
|
@ -155,7 +155,8 @@ public class NearestFavoriteStationWidgetService extends JobIntentService {
|
||||||
log.info("Widgets: {}, location: {}", Arrays.toString(appWidgetIds), here);
|
log.info("Widgets: {}, location: {}", Arrays.toString(appWidgetIds), here);
|
||||||
handleLocation(appWidgetIds, here);
|
handleLocation(appWidgetIds, here);
|
||||||
} catch (final TimeoutException x) {
|
} catch (final TimeoutException x) {
|
||||||
log.info("Widgets: {}, location timeout", Arrays.toString(appWidgetIds));
|
log.info("Widgets: {}, location timed out after {} ms", Arrays.toString(appWidgetIds),
|
||||||
|
Constants.LOCATION_TIMEOUT_MS);
|
||||||
widgetsHeader(appWidgetIds, getString(R.string.acquire_location_timeout));
|
widgetsHeader(appWidgetIds, getString(R.string.acquire_location_timeout));
|
||||||
} catch (final InterruptedException | ExecutionException x) {
|
} catch (final InterruptedException | ExecutionException x) {
|
||||||
throw new RuntimeException(x);
|
throw new RuntimeException(x);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue