From 48c63206caf6c3b76f38315f1cb8cf36e5ab3bf4 Mon Sep 17 00:00:00 2001 From: meiron03 Date: Fri, 20 Oct 2023 21:25:37 -0400 Subject: [PATCH] remove commented out code and unused imports --- .../com/pennapps/labs/pennmobile/adapters/HomeAdapter.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/HomeAdapter.kt b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/HomeAdapter.kt index 0ae04c46..aa50b983 100644 --- a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/HomeAdapter.kt +++ b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/adapters/HomeAdapter.kt @@ -10,7 +10,6 @@ import android.graphics.drawable.ColorDrawable import android.net.Uri import android.os.Build import android.preference.PreferenceManager -import android.util.DisplayMetrics import android.util.Log import android.view.LayoutInflater import android.view.View @@ -378,9 +377,7 @@ class HomeAdapter(private var cells: ArrayList) : post?.expireDate?.substring(5, 7) + " / " + post?.expireDate?.substring(8, 10) holder.itemView.home_post_timestamp.text = time -// Picasso.get() -// .load(post?.imageUrl) -// .into(holder.itemView.home_post_iv) + /** Adds dynamically generated accent color from the fetched image to the news card */ var accentColor: Int = getColor(mContext, R.color.black) GlobalScope.launch(Dispatchers.Default) { @@ -453,9 +450,6 @@ class HomeAdapter(private var cells: ArrayList) : holder.itemView.home_post_subtitle?.text = info?.description holder.itemView.home_post_source?.text = info?.source holder.itemView.home_post_timestamp?.text = info?.timestamp - if (info?.imageUrl != null) { - //Picasso.get().load(info.imageUrl).fit().centerCrop().into(holder.itemView.home_post_iv) - } // For now, we only use Feature cards for Spring Fling so we show the Fling Fragment holder.itemView.home_post_card.setOnClickListener {