From 87535a923908f342485267a81d243b645aa851e5 Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX <1173913+AbandonedCart@users.noreply.github.com> Date: Sun, 7 Apr 2024 22:48:26 -0400 Subject: [PATCH] fix: got lost in the cherry-picking (#337) --- .../ani/dantotsu/widgets/statistics/ProfileStatsWidget.kt | 2 +- .../widgets/upcoming/UpcomingRemoteViewsFactory.kt | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/ani/dantotsu/widgets/statistics/ProfileStatsWidget.kt b/app/src/main/java/ani/dantotsu/widgets/statistics/ProfileStatsWidget.kt index af363ae225..cc3195247c 100644 --- a/app/src/main/java/ani/dantotsu/widgets/statistics/ProfileStatsWidget.kt +++ b/app/src/main/java/ani/dantotsu/widgets/statistics/ProfileStatsWidget.kt @@ -17,7 +17,7 @@ import ani.dantotsu.connections.anilist.Anilist import ani.dantotsu.profile.ProfileActivity import ani.dantotsu.settings.saving.PrefManager import ani.dantotsu.settings.saving.PrefName -import ani.dantotsu.util.BitmapUtil.Companion.downloadImageAsBitmap +import ani.dantotsu.util.BitmapUtil.downloadImageAsBitmap import ani.dantotsu.widgets.WidgetSizeProvider import kotlinx.coroutines.DelicateCoroutinesApi import kotlinx.coroutines.Dispatchers diff --git a/app/src/main/java/ani/dantotsu/widgets/upcoming/UpcomingRemoteViewsFactory.kt b/app/src/main/java/ani/dantotsu/widgets/upcoming/UpcomingRemoteViewsFactory.kt index 7f499dfa30..6cb60677fd 100644 --- a/app/src/main/java/ani/dantotsu/widgets/upcoming/UpcomingRemoteViewsFactory.kt +++ b/app/src/main/java/ani/dantotsu/widgets/upcoming/UpcomingRemoteViewsFactory.kt @@ -2,8 +2,6 @@ package ani.dantotsu.widgets.upcoming import android.content.Context import android.content.Intent -import android.graphics.Bitmap -import android.graphics.BitmapFactory import android.graphics.Color import android.widget.RemoteViews import android.widget.RemoteViewsService @@ -12,8 +10,7 @@ import ani.dantotsu.connections.anilist.Anilist import ani.dantotsu.media.Media import ani.dantotsu.settings.saving.PrefManager import ani.dantotsu.settings.saving.PrefName -import ani.dantotsu.util.BitmapUtil.Companion.downloadImageAsBitmap -import ani.dantotsu.util.BitmapUtil.Companion.roundCorners +import ani.dantotsu.util.BitmapUtil.downloadImageAsBitmap import ani.dantotsu.util.Logger import com.google.gson.GsonBuilder import com.google.gson.InstanceCreator @@ -25,9 +22,6 @@ import eu.kanade.tachiyomi.source.model.SChapter import eu.kanade.tachiyomi.source.model.SChapterImpl import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.runBlocking -import java.io.InputStream -import java.net.HttpURLConnection -import java.net.URL class UpcomingRemoteViewsFactory(private val context: Context) : RemoteViewsService.RemoteViewsFactory {