Glimpse: Round off corners of image previews

Change-Id: I40ab20e7a85f9634b5ba28af8fcddec49f7abfe5
diff --git a/app/src/main/res/drawable/bg_thumbnail.xml b/app/src/main/res/drawable/bg_thumbnail.xml
new file mode 100644
index 0000000..e2c6cf1
--- /dev/null
+++ b/app/src/main/res/drawable/bg_thumbnail.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     SPDX-FileCopyrightText: 2024 The LineageOS Project
+     SPDX-License-Identifier: Apache-2.0
+-->
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+    android:shape="rectangle">
+    <corners android:radius="4dp" />
+</shape>
diff --git a/app/src/main/res/layout/album_thumbnail_view.xml b/app/src/main/res/layout/album_thumbnail_view.xml
index 94f8682..b8f3ea5 100644
--- a/app/src/main/res/layout/album_thumbnail_view.xml
+++ b/app/src/main/res/layout/album_thumbnail_view.xml
@@ -14,6 +14,8 @@
         android:id="@+id/thumbnailImageView"
         android:layout_width="0dp"
         android:layout_height="0dp"
+        android:background="@drawable/bg_thumbnail"
+        android:clipToOutline="true"
         android:scaleType="centerCrop"
         app:layout_constraintDimensionRatio="W,1:1"
         app:layout_constraintEnd_toEndOf="parent"
diff --git a/app/src/main/res/layout/thumbnail_view.xml b/app/src/main/res/layout/thumbnail_view.xml
index 5b17078..58e7e10 100644
--- a/app/src/main/res/layout/thumbnail_view.xml
+++ b/app/src/main/res/layout/thumbnail_view.xml
@@ -14,6 +14,8 @@
         android:id="@+id/thumbnailImageView"
         android:layout_width="0dp"
         android:layout_height="0dp"
+        android:background="@drawable/bg_thumbnail"
+        android:clipToOutline="true"
         android:scaleType="centerCrop"
         app:layout_constraintDimensionRatio="1:1"
         app:layout_constraintEnd_toEndOf="parent"