[Android] Set isAntiAlias to true for HalfCircleView

Habib Kazemi git at videolan.org
Wed Jan 20 09:54:27 UTC 2021


vlc-android | branch: 3.3.x | Habib Kazemi <kazemihabib1996 at gmail.com> | Wed Dec 30 13:25:47 2020 +0330| [d70c1eb1fa3b17d84865c094660d0c15a2133806] | committer: Nicolas Pomepuy

Set isAntiAlias to true for HalfCircleView

Fixes #1594

(cherry picked from commit f47d9a5cc1749c188c56ad6c161ab6a344d40685)

> https://code.videolan.org/videolan/vlc-android/commit/d70c1eb1fa3b17d84865c094660d0c15a2133806
---

 application/vlc-android/src/org/videolan/vlc/gui/view/HalfCircleView.kt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/view/HalfCircleView.kt b/application/vlc-android/src/org/videolan/vlc/gui/view/HalfCircleView.kt
index 54e6ece31..51180044e 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/view/HalfCircleView.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/view/HalfCircleView.kt
@@ -41,6 +41,7 @@ class HalfCircleView : View {
 
     private fun initialize() {
         paint.color = ContextCompat.getColor(context, R.color.blacktransparent)
+        paint.isAntiAlias = true
         if (Settings.showTvUi) {
             background = ContextCompat.getDrawable(context, if (isLeft) R.drawable.half_circle_tv_left else R.drawable.half_circle_tv_right)
         } else {



More information about the Android mailing list