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()); } });