Custom picker: Show differently pictures that are currently being uploaded (#5618)

* Custom picker: Show differently pictures that are currently being uploaded

* fix tests

* fix test

* fix crash

* handle all cases

* handle all cases

* fix

* Hide Images When showAlreadyActioned is disabled

* Fix Tests

* cleanup
This commit is contained in:
Shashank Kumar 2024-03-22 18:43:19 +05:30 committed by GitHub
parent 72cdb5d0dd
commit 2d333a2af0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 129 additions and 39 deletions

View file

@ -61,6 +61,13 @@
android:alpha="0.15"
android:background="@color/black"/>
<View
android:id="@+id/uploading_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:alpha="0.15"
android:background="@color/black"/>
<ImageView
android:id="@+id/uploaded_overlay_icon"
@ -71,6 +78,15 @@
app:srcCompat="@drawable/commons"
/>
<ImageView
android:id="@+id/uploading_overlay_icon"
android:layout_width="@dimen/dimen_50"
android:layout_height="@dimen/dimen_50"
android:rotationX="180"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:srcCompat="@drawable/menu_ic_download_24dp" />
<androidx.constraintlayout.widget.Group
android:id="@+id/uploaded_group"
android:layout_width="wrap_content"
@ -78,6 +94,13 @@
android:visibility="gone"
app:constraint_referenced_ids="uploaded_overlay,uploaded_overlay_icon"/>
<androidx.constraintlayout.widget.Group
android:id="@+id/uploading_group"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
app:constraint_referenced_ids="uploading_overlay,uploading_overlay_icon"/>
<ImageView
android:id="@+id/not_for_upload_overlay_icon"
android:layout_width="@dimen/dimen_50"
@ -98,4 +121,4 @@
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>