From db7d944a41faa79a4a14306b84c5a8709ee68c8b Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Thu, 17 Dec 2020 10:04:43 +0100 Subject: [PATCH] [ADD] log --- app/src/main/java/com/a1/nextlocation/data/db/Database.java | 1 + .../main/java/com/a1/nextlocation/network/ApiHandler.java | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/a1/nextlocation/data/db/Database.java b/app/src/main/java/com/a1/nextlocation/data/db/Database.java index ed6180f..f273554 100644 --- a/app/src/main/java/com/a1/nextlocation/data/db/Database.java +++ b/app/src/main/java/com/a1/nextlocation/data/db/Database.java @@ -53,6 +53,7 @@ public abstract class Database extends RoomDatabase { super.onCreate(db); databaseWriterExecutor.execute(() -> { + // TODO populate our database here }); diff --git a/app/src/main/java/com/a1/nextlocation/network/ApiHandler.java b/app/src/main/java/com/a1/nextlocation/network/ApiHandler.java index 2a4d6ae..af34416 100644 --- a/app/src/main/java/com/a1/nextlocation/network/ApiHandler.java +++ b/app/src/main/java/com/a1/nextlocation/network/ApiHandler.java @@ -1,5 +1,7 @@ package com.a1.nextlocation.network; +import android.util.Log; + import com.a1.nextlocation.data.Location; import com.a1.nextlocation.data.Route; @@ -42,11 +44,11 @@ public enum ApiHandler { try (Response response = client.newCall(request).execute()) { if (response.body() != null) { String responseString = Objects.requireNonNull(response.body()).string(); - + Log.d(TAG, "getDirections: got response: " + responseString); } } catch (IOException e) { - + Log.d(TAG, "getDirections: caught exception: " + e.getLocalizedMessage()); } });