diff --git a/app/src/main/java/nl/ags/picum/UI/MainActivity.java b/app/src/main/java/nl/ags/picum/UI/MainActivity.java index 398d6c1..dff7815 100644 --- a/app/src/main/java/nl/ags/picum/UI/MainActivity.java +++ b/app/src/main/java/nl/ags/picum/UI/MainActivity.java @@ -84,6 +84,12 @@ protected void onCreate(Bundle savedInstanceState) { this.routes.addAll(tempList); runOnUiThread(() -> Objects.requireNonNull(recyclerView.getAdapter()).notifyItemRangeChanged(0,tempList.size())); + + if (manager.getCurrentRoute() != null) { + Intent openMapIntent = new Intent(this, MapActivity.class); + openMapIntent.putExtra("SelectedRoute", manager.getCurrentRoute()); + startActivity(openMapIntent); + } }).start(); }