Skip to content

Commit

Permalink
remove commented out code and unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
meiron03 committed Oct 21, 2023
1 parent 7d036d8 commit 48c6320
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -378,9 +377,7 @@ class HomeAdapter(private var cells: ArrayList<HomeCell>) :
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) {
Expand Down Expand Up @@ -453,9 +450,6 @@ class HomeAdapter(private var cells: ArrayList<HomeCell>) :
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 {
Expand Down

0 comments on commit 48c6320

Please sign in to comment.