diff --git a/app/build.gradle b/app/build.gradle index 97b610b74..c71e5724d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,8 +13,8 @@ android { applicationId "net.frju.flym" minSdkVersion 21 targetSdkVersion 30 - versionCode 39 - versionName "2.5.5" + versionCode 40 + versionName "2.5.6" } compileOptions { diff --git a/app/src/main/java/net/frju/flym/data/entities/Entry.kt b/app/src/main/java/net/frju/flym/data/entities/Entry.kt index b73e26d4b..7606feade 100644 --- a/app/src/main/java/net/frju/flym/data/entities/Entry.kt +++ b/app/src/main/java/net/frju/flym/data/entities/Entry.kt @@ -30,8 +30,7 @@ import com.rometools.rome.feed.synd.SyndEntry import kotlinx.android.parcel.Parcelize import net.fred.feedex.R import net.frju.flym.utils.sha1 -import java.util.Date -import java.util.UUID +import java.util.* @Parcelize @@ -87,7 +86,6 @@ fun SyndEntry.toDbFormat(context: Context, feed: Feed): Entry { } } } - //TODO item.imageLink = null item.author = author diff --git a/app/src/main/java/net/frju/flym/ui/entries/EntryAdapter.kt b/app/src/main/java/net/frju/flym/ui/entries/EntryAdapter.kt index def07e338..3eb529233 100644 --- a/app/src/main/java/net/frju/flym/ui/entries/EntryAdapter.kt +++ b/app/src/main/java/net/frju/flym/ui/entries/EntryAdapter.kt @@ -18,7 +18,6 @@ package net.frju.flym.ui.entries import android.annotation.SuppressLint -import android.graphics.Color import android.text.TextUtils import android.view.LayoutInflater import android.view.View @@ -85,12 +84,7 @@ class EntryAdapter(var displayThumbnails: Boolean, private val globalClickListen date.isEnabled = !entryWithFeed.entry.read date.text = entryWithFeed.entry.getReadablePublicationDate(context) - if (entryWithFeed.entry.read) { - favorite_icon.setColorFilter(Color.GRAY) - } - else { - favorite_icon.setColorFilter(Color.WHITE) - } + favorite_icon.alpha = if (!entryWithFeed.entry.read) 1f else 0.5f if (entryWithFeed.entry.favorite) { favorite_icon.setImageResource(R.drawable.ic_star_24dp)