Support simple single select in PhotoActivity
- Add PhotosTabFragment with RecyclerView
- Add ViewHolders for RecyclerView
- Get the data from PickerViewModel
- Return the uri after the user clicks the Photo
- Grant uri read permission
Test: manual. the videos on b/169738588
Test: atest ItemTest
Bug: 169738588
Change-Id: Ie857fa4f25c82ceaca6ca2c160c109e1d15eedf2
Merged-In: Ie857fa4f25c82ceaca6ca2c160c109e1d15eedf2
(cherry picked from commit fe204ba51f297d78f35f646ac6291ec166d163a0)
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 4b77b9d..669b45d 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -16,9 +16,6 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android">
- <style name="AppTheme" parent="Theme.AppCompat">
- </style>
-
<style name="PickerDialogTheme"
parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert">
<item name="android:windowNoTitle">true</item>
@@ -52,4 +49,18 @@
parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle">
<item name="android:textColor">?android:attr/textColorPrimary</item>
</style>
+
+ <style name="PickerDefaultTheme" parent="@style/Theme.MaterialComponents.DayNight.NoActionBar">
+ <!-- Color section -->
+ <item name="android:colorBackground">@color/picker_background_color</item>
+ <item name="android:strokeColor">@color/picker_hairline_color</item>
+
+ <!-- System | Widget section -->
+ <item name="android:statusBarColor">?android:colorBackground</item>
+ <item name="android:navigationBarColor">?android:colorBackground</item>
+ <item name="android:windowBackground">?android:colorBackground</item>
+ <item name="android:windowLightStatusBar">true</item>
+ <item name="android:windowLightNavigationBar">true</item>
+ </style>
+
</resources>