From 24054a65bd334c6f327ecd6bf80e2a436880a097 Mon Sep 17 00:00:00 2001 From: Akshar Patel <53969601+aksharpatel17@users.noreply.github.com> Date: Thu, 15 Feb 2024 20:31:44 -0500 Subject: [PATCH] Fix/#19 Import error for List resolved (#33) --- .../ui/aggregatedStatistics/FilterDialogFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/dennisguse/opentracks/ui/aggregatedStatistics/FilterDialogFragment.java b/src/main/java/de/dennisguse/opentracks/ui/aggregatedStatistics/FilterDialogFragment.java index e043e2387..e4d399323 100644 --- a/src/main/java/de/dennisguse/opentracks/ui/aggregatedStatistics/FilterDialogFragment.java +++ b/src/main/java/de/dennisguse/opentracks/ui/aggregatedStatistics/FilterDialogFragment.java @@ -18,6 +18,7 @@ import java.time.ZoneOffset; import java.time.temporal.WeekFields; import java.util.ArrayList; +import java.util.List; import java.util.Locale; import de.dennisguse.opentracks.R; @@ -40,7 +41,7 @@ public static void showDialog(FragmentManager fragmentManager) { public static void showDialog(FragmentManager fragmentManager, List items) { Bundle bundle = new Bundle(); - bundle.putParcelableArrayList(KEY_FILTER_ITEMS, items); + bundle.putParcelableArrayList(KEY_FILTER_ITEMS,(ArrayList) items); FilterDialogFragment filterDialogFragment = new FilterDialogFragment(); filterDialogFragment.setArguments(bundle);