Fix current chapter having the same color as the dialog background (#6315)

This commit is contained in:
ByteHamster 2023-02-12 09:44:11 +01:00 committed by GitHub
parent 08ee701dd7
commit 22e6a0c40f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ public class ChaptersListAdapter extends RecyclerView.Adapter<ChaptersListAdapte
if (position == currentChapterIndex) {
float density = context.getResources().getDisplayMetrics().density;
holder.itemView.setBackgroundColor(SurfaceColors.getColorForElevation(context, 8 * density));
holder.itemView.setBackgroundColor(SurfaceColors.getColorForElevation(context, 32 * density));
float progress = ((float) (currentChapterPosition - sc.getStart())) / duration;
progress = Math.max(progress, CircularProgressBar.MINIMUM_PERCENTAGE);
progress = Math.min(progress, CircularProgressBar.MAXIMUM_PERCENTAGE);