Add disabled behavior for profile button
Change icon, text and background color for the button if the button is
disabled.
Add cross user intent check for the intent that launched the activity.
Bug: 190727775
Test: manual
Change-Id: If30a5c44e211b794f794f0f6efc7ac5ee0b94649
Merged-In: If30a5c44e211b794f794f0f6efc7ac5ee0b94649
(cherry picked from commit cd3ed8363eb2f9d301082d19e7f1a3dc8d032eae)
diff --git a/res/values/colors.xml b/res/values/colors.xml
index bf7b280..05d43ba 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -38,7 +38,9 @@
<color name="preview_default_grey">#202124</color>
<color name="preview_default_black">@android:color/black</color>
- <!-- PhotoPicker Preview -->
- <color name="picker_profile_button_text_and_icon_color">#0B57D0</color>
- <color name="picker_profile_button_background">#E8F0FE</color>
+ <!-- PhotoPicker Profile Button -->
+ <color name="picker_profile_button_content_color">#0B57D0</color>
+ <color name="picker_profile_button_background_color">#E8F0FE</color>
+ <color name="picker_profile_disabled_button_content_color">#1F1F1F</color>
+ <color name="picker_profile_disabled_button_background_color">#DADADA</color>
</resources>