Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Commit

Permalink
fix star display on white theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Julian committed Dec 16, 2020
1 parent 34f7300 commit 5fdc868
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 1 addition & 3 deletions app/src/main/java/net/frju/flym/data/entities/Entry.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -87,7 +86,6 @@ fun SyndEntry.toDbFormat(context: Context, feed: Feed): Entry {
}
}
}
//TODO item.imageLink = null

item.author = author

Expand Down
8 changes: 1 addition & 7 deletions app/src/main/java/net/frju/flym/ui/entries/EntryAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5fdc868

Please sign in to comment.