|
4 | 4 | import static org.schabi.newpipe.ktx.ViewUtils.animateHideRecyclerViewAllowingScrolling; |
5 | 5 |
|
6 | 6 | import android.content.Context; |
7 | | -import android.content.res.ColorStateList; |
8 | 7 | import android.os.Bundle; |
9 | 8 | import android.text.TextUtils; |
10 | 9 | import android.util.Log; |
|
18 | 17 | import androidx.annotation.NonNull; |
19 | 18 | import androidx.annotation.Nullable; |
20 | 19 | import androidx.appcompat.content.res.AppCompatResources; |
21 | | -import androidx.core.content.ContextCompat; |
22 | 20 |
|
23 | 21 | import com.google.android.material.shape.CornerFamily; |
24 | 22 | import com.google.android.material.shape.ShapeAppearanceModel; |
|
42 | 40 | import org.schabi.newpipe.extractor.stream.StreamInfoItem; |
43 | 41 | import org.schabi.newpipe.fragments.list.BaseListInfoFragment; |
44 | 42 | import org.schabi.newpipe.info_list.dialog.InfoItemDialog; |
| 43 | +import org.schabi.newpipe.info_list.dialog.StreamDialogDefaultEntry; |
45 | 44 | import org.schabi.newpipe.local.dialog.PlaylistDialog; |
46 | 45 | import org.schabi.newpipe.local.playlist.RemotePlaylistManager; |
47 | 46 | import org.schabi.newpipe.player.MainPlayer.PlayerType; |
|
51 | 50 | import org.schabi.newpipe.util.Localization; |
52 | 51 | import org.schabi.newpipe.util.NavigationHelper; |
53 | 52 | import org.schabi.newpipe.util.PicassoHelper; |
54 | | -import org.schabi.newpipe.info_list.dialog.StreamDialogDefaultEntry; |
55 | 53 | import org.schabi.newpipe.util.external_communication.ShareUtils; |
56 | 54 |
|
57 | 55 | import java.util.ArrayList; |
@@ -307,10 +305,8 @@ public void handleResult(@NonNull final PlaylistInfo result) { |
307 | 305 | .setAllCorners(CornerFamily.ROUNDED, 0f) |
308 | 306 | .build(); // this turns the image back into a square |
309 | 307 | headerBinding.uploaderAvatarView.setShapeAppearanceModel(model); |
310 | | - headerBinding.uploaderAvatarView.setStrokeColor( |
311 | | - ColorStateList.valueOf(ContextCompat.getColor( |
312 | | - requireContext(), R.color.transparent_background_color)) |
313 | | - ); |
| 308 | + headerBinding.uploaderAvatarView.setStrokeColor(AppCompatResources |
| 309 | + .getColorStateList(requireContext(), R.color.transparent_background_color)); |
314 | 310 | headerBinding.uploaderAvatarView.setImageDrawable( |
315 | 311 | AppCompatResources.getDrawable(requireContext(), |
316 | 312 | R.drawable.ic_radio) |
|
0 commit comments