Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import androidx.core.view.isVisible
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.RecyclerView
import com.google.android.material.R as MaterialR
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.google.android.material.snackbar.Snackbar
import com.google.android.material.tabs.TabLayout
Expand Down Expand Up @@ -143,6 +144,7 @@ import org.wordpress.android.util.StringUtils
import org.wordpress.android.util.ToastUtils
import org.wordpress.android.util.WPActivityUtils
import org.wordpress.android.util.config.SeenUnseenWithCounterFeatureConfig
import org.wordpress.android.util.extensions.getColorFromAttribute
import org.wordpress.android.util.image.ImageManager
import org.wordpress.android.viewmodel.Event
import org.wordpress.android.widgets.AppReviewManager.incrementInteractions
Expand Down Expand Up @@ -1849,6 +1851,11 @@ class ReaderPostListFragment : ViewPagerFragment(), OnPostSelectedListener, OnFo
requireContext(),
R.drawable.ic_bookmark_grey_dark_18dp
)

val tint = requireContext().getColorFromAttribute(MaterialR.attr.colorOnBackground)
drawable?.setTint(tint)
drawable?.alpha = BOOKMARK_IMAGE_ALPHA

drawable!!.setBounds(
0,
0,
Expand Down Expand Up @@ -2902,6 +2909,7 @@ class ReaderPostListFragment : ViewPagerFragment(), OnPostSelectedListener, OnFo
private const val NO_POSITION = -1
private const val RECYCLER_DELAY_MS = 1000L
private const val BOOKMARK_IMAGE_MULTIPLIER = 1.2
private const val BOOKMARK_IMAGE_ALPHA = 150
private var hasPurgedReaderDb = false

/*
Expand Down