Aperture: Add ID to gallery button card view
Change-Id: If3a139faadc83163ecc4d9e32ef9b7d8e1071512
diff --git a/app/src/main/java/org/lineageos/aperture/MainActivity.kt b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
index 6fcbd1e..fcf8ab4 100644
--- a/app/src/main/java/org/lineageos/aperture/MainActivity.kt
+++ b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
@@ -50,6 +50,7 @@
import androidx.camera.view.LifecycleCameraController
import androidx.camera.view.PreviewView
import androidx.camera.view.video.AudioConfig
+import androidx.cardview.widget.CardView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
@@ -93,6 +94,7 @@
private val flashButton by lazy { findViewById<ImageButton>(R.id.flashButton) }
private val flipCameraButton by lazy { findViewById<ImageButton>(R.id.flipCameraButton) }
private val galleryButton by lazy { findViewById<ImageView>(R.id.galleryButton) }
+ private val galleryButtonCardView by lazy { findViewById<CardView>(R.id.galleryButtonCardView) }
private val gridButton by lazy { findViewById<ImageButton>(R.id.gridButton) }
private val gridView by lazy { findViewById<GridView>(R.id.gridView) }
private val micButton by lazy { findViewById<ImageButton>(R.id.micButton) }
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 111b7b1..4dee24b 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -231,6 +231,7 @@
app:layout_constraintTop_toTopOf="parent" />
<androidx.cardview.widget.CardView
+ android:id="@+id/galleryButtonCardView"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_gravity="center"