This commit is contained in:
Page Asgardius 2022-09-02 14:34:02 -07:00
parent 46fad327d0
commit 2b65be2374
3 changed files with 10 additions and 3 deletions

View file

@ -75,7 +75,14 @@ public class ObjectSelect extends AppCompatActivity {
List<S3ObjectSummary> objects = result.getObjectSummaries();
for (S3ObjectSummary os : objects) {
Name.add(os.getKey());
Img.add(R.drawable.videofile);
if (os.getKey().endsWith(".opus") || os.getKey().endsWith(".ogg")
|| os.getKey().endsWith(".oga") || os.getKey().endsWith(".mp3")
|| os.getKey().endsWith(".m4a")) {
Img.add(R.drawable.audiofile);
}
else {
Img.add(R.drawable.videofile);
}
}
/*for (Bucket bucket : buckets) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View file

@ -24,11 +24,11 @@
android:layout_height="wrap_content"
android:layout_marginEnd="192dp"
android:text="TextView"
android:textSize="22sp"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.101"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toEndOf="@+id/image"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>