From 158727e2f2d0e12688f9bc948ce7c7550fb94f07 Mon Sep 17 00:00:00 2001 From: Stypox Date: Wed, 1 Apr 2020 21:41:56 +0200 Subject: [PATCH] Replace hardcoded white drawable with themed one --- .../schabi/newpipe/fragments/detail/VideoDetailFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java index 7fb483fc5..93ae5d5b8 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java @@ -1117,7 +1117,6 @@ public class VideoDetailFragment extends BaseStateFragment animateView(videoTitleTextView, true, 0); videoDescriptionRootLayout.setVisibility(View.GONE); - videoTitleToggleArrow.setImageResource(R.drawable.ic_expand_more_white_24dp); videoTitleToggleArrow.setVisibility(View.GONE); videoTitleRoot.setClickable(false); @@ -1232,8 +1231,9 @@ public class VideoDetailFragment extends BaseStateFragment videoDescriptionView.setVisibility(View.GONE); videoTitleRoot.setClickable(true); + videoTitleToggleArrow.setImageResource( + ThemeHelper.resolveResourceIdFromAttr(requireContext(), R.attr.ic_expand_more)); videoTitleToggleArrow.setVisibility(View.VISIBLE); - videoTitleToggleArrow.setImageResource(R.drawable.ic_expand_more_white_24dp); videoDescriptionRootLayout.setVisibility(View.GONE); if (info.getUploadDate() != null) {