From 69b24699a36bc9c4ffc6200fbcf8069f7a94c1ab Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Mon, 25 Mar 2024 21:45:43 +0100 Subject: Move DBReader to :storage:database (#7027) --- ui/statistics/build.gradle | 1 + .../de/danoeh/antennapod/ui/statistics/StatisticsListAdapter.java | 3 +-- .../ui/statistics/downloads/DownloadStatisticsFragment.java | 2 +- .../ui/statistics/downloads/DownloadStatisticsListAdapter.java | 2 +- .../danoeh/antennapod/ui/statistics/feed/FeedStatisticsFragment.java | 4 ++-- .../ui/statistics/subscriptions/PlaybackStatisticsListAdapter.java | 2 +- .../ui/statistics/subscriptions/SubscriptionStatisticsFragment.java | 2 +- .../java/de/danoeh/antennapod/ui/statistics/years/BarChartView.java | 2 +- .../antennapod/ui/statistics/years/YearStatisticsListAdapter.java | 2 +- .../antennapod/ui/statistics/years/YearsStatisticsFragment.java | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) (limited to 'ui/statistics') diff --git a/ui/statistics/build.gradle b/ui/statistics/build.gradle index f49b98a4e..e5e00d32d 100644 --- a/ui/statistics/build.gradle +++ b/ui/statistics/build.gradle @@ -12,6 +12,7 @@ dependencies { implementation project(":core") implementation project(":event") implementation project(":model") + implementation project(':storage:database') implementation project(":ui:app-start-intent") implementation project(":ui:common") diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/StatisticsListAdapter.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/StatisticsListAdapter.java index cae58a38f..1f35c5c9d 100644 --- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/StatisticsListAdapter.java +++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/StatisticsListAdapter.java @@ -12,8 +12,7 @@ import android.widget.TextView; import com.bumptech.glide.Glide; import com.bumptech.glide.request.RequestOptions; -import de.danoeh.antennapod.core.storage.StatisticsItem; - +import de.danoeh.antennapod.storage.database.StatisticsItem; import java.util.List; /** diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/downloads/DownloadStatisticsFragment.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/downloads/DownloadStatisticsFragment.java index f1f6a0785..7a845d6e6 100644 --- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/downloads/DownloadStatisticsFragment.java +++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/downloads/DownloadStatisticsFragment.java @@ -14,7 +14,7 @@ import androidx.fragment.app.Fragment; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; -import de.danoeh.antennapod.core.storage.DBReader; +import de.danoeh.antennapod.storage.database.DBReader; import de.danoeh.antennapod.ui.statistics.R; import io.reactivex.Observable; import io.reactivex.android.schedulers.AndroidSchedulers; diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/downloads/DownloadStatisticsListAdapter.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/downloads/DownloadStatisticsListAdapter.java index 083a87514..8f1d51cf2 100644 --- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/downloads/DownloadStatisticsListAdapter.java +++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/downloads/DownloadStatisticsListAdapter.java @@ -3,7 +3,7 @@ package de.danoeh.antennapod.ui.statistics.downloads; import android.content.Context; import android.text.format.Formatter; import androidx.fragment.app.Fragment; -import de.danoeh.antennapod.core.storage.StatisticsItem; +import de.danoeh.antennapod.storage.database.StatisticsItem; import de.danoeh.antennapod.ui.statistics.PieChartView; import de.danoeh.antennapod.ui.statistics.R; import de.danoeh.antennapod.ui.statistics.StatisticsListAdapter; diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/feed/FeedStatisticsFragment.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/feed/FeedStatisticsFragment.java index 1e2520953..6a9e80740 100644 --- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/feed/FeedStatisticsFragment.java +++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/feed/FeedStatisticsFragment.java @@ -9,8 +9,8 @@ import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import de.danoeh.antennapod.core.storage.DBReader; -import de.danoeh.antennapod.core.storage.StatisticsItem; +import de.danoeh.antennapod.storage.database.DBReader; +import de.danoeh.antennapod.storage.database.StatisticsItem; import de.danoeh.antennapod.ui.common.Converter; import de.danoeh.antennapod.ui.common.DateFormatter; import de.danoeh.antennapod.core.util.ReleaseScheduleGuesser; diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/PlaybackStatisticsListAdapter.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/PlaybackStatisticsListAdapter.java index 55e6cc0fd..c597e18bb 100644 --- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/PlaybackStatisticsListAdapter.java +++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/PlaybackStatisticsListAdapter.java @@ -2,7 +2,7 @@ package de.danoeh.antennapod.ui.statistics.subscriptions; import android.text.format.DateFormat; import androidx.fragment.app.Fragment; -import de.danoeh.antennapod.core.storage.StatisticsItem; +import de.danoeh.antennapod.storage.database.StatisticsItem; import de.danoeh.antennapod.ui.common.Converter; import de.danoeh.antennapod.ui.statistics.PieChartView; import de.danoeh.antennapod.ui.statistics.R; diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/SubscriptionStatisticsFragment.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/SubscriptionStatisticsFragment.java index c7eddd222..fca8b903f 100644 --- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/SubscriptionStatisticsFragment.java +++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/SubscriptionStatisticsFragment.java @@ -15,8 +15,8 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; -import de.danoeh.antennapod.core.storage.DBReader; import de.danoeh.antennapod.event.StatisticsEvent; +import de.danoeh.antennapod.storage.database.DBReader; import de.danoeh.antennapod.ui.statistics.R; import de.danoeh.antennapod.ui.statistics.StatisticsFragment; import io.reactivex.Observable; diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/years/BarChartView.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/years/BarChartView.java index 93b9e3332..510bcb8e1 100644 --- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/years/BarChartView.java +++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/years/BarChartView.java @@ -12,7 +12,7 @@ import android.util.AttributeSet; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.widget.AppCompatImageView; -import de.danoeh.antennapod.core.storage.DBReader; +import de.danoeh.antennapod.storage.database.DBReader; import de.danoeh.antennapod.ui.common.ThemeUtils; import de.danoeh.antennapod.ui.statistics.R; diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/years/YearStatisticsListAdapter.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/years/YearStatisticsListAdapter.java index d000ceb62..5dd4434c4 100644 --- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/years/YearStatisticsListAdapter.java +++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/years/YearStatisticsListAdapter.java @@ -7,7 +7,7 @@ import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; -import de.danoeh.antennapod.core.storage.DBReader; +import de.danoeh.antennapod.storage.database.DBReader; import de.danoeh.antennapod.ui.statistics.R; import java.util.ArrayList; diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/years/YearsStatisticsFragment.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/years/YearsStatisticsFragment.java index 5368e52a9..296bc14fd 100644 --- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/years/YearsStatisticsFragment.java +++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/years/YearsStatisticsFragment.java @@ -12,8 +12,8 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; -import de.danoeh.antennapod.core.storage.DBReader; import de.danoeh.antennapod.event.StatisticsEvent; +import de.danoeh.antennapod.storage.database.DBReader; import de.danoeh.antennapod.ui.statistics.R; import io.reactivex.Observable; import io.reactivex.android.schedulers.AndroidSchedulers; -- cgit v1.2.3