Aperture: Animate focus ring

Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com>
Change-Id: I6226e504d29d813d27842c2eaa76018d761c3846
diff --git a/app/src/main/java/org/lineageos/aperture/MainActivity.kt b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
index 00569e5..3b687de 100644
--- a/app/src/main/java/org/lineageos/aperture/MainActivity.kt
+++ b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
@@ -232,9 +232,20 @@
                 CameraController.TAP_TO_FOCUS_STARTED -> {
                     viewFinderFocus.visibility = View.VISIBLE
                     handler.removeMessages(MSG_HIDE_FOCUS_RING)
+                    ValueAnimator.ofInt(convertDpToPx(0), convertDpToPx(8)).apply {
+                        addUpdateListener { anim ->
+                            viewFinderFocus.setPadding(anim.animatedValue as Int)
+                        }
+                    }.start()
                 }
                 else -> {
                     handler.removeMessages(MSG_HIDE_FOCUS_RING)
+                    ValueAnimator.ofInt(convertDpToPx(8), convertDpToPx(0)).apply {
+                        addUpdateListener { anim ->
+                            viewFinderFocus.setPadding(anim.animatedValue as Int)
+                        }
+                    }.start()
+
                     handler.sendMessageDelayed(handler.obtainMessage(MSG_HIDE_FOCUS_RING), 500)
                 }
             }