From 3c463f7545bcc3a47f9213c9e89ca9accb93bdd2 Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Tue, 13 Sep 2022 07:58:22 -0700 Subject: [PATCH] fix text viewer --- app/src/main/java/asgardius/page/s3manager/ObjectSelect.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java b/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java index bc68bf5..fd8cac1 100644 --- a/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java +++ b/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java @@ -210,7 +210,7 @@ public class ObjectSelect extends AppCompatActivity { } catch (Exception e) { Toast.makeText(getApplicationContext(),getResources().getString(R.string.media_list_fail), Toast.LENGTH_SHORT).show(); } - } else if (Img.get(position).equals(R.drawable.textfile)) { + } /*else if (Img.get(position).equals(R.drawable.textfile)) { //load media file try { GeneratePresignedUrlRequest request = new GeneratePresignedUrlRequest(bucket, prefix + Name.get(position).toString()); @@ -219,7 +219,7 @@ public class ObjectSelect extends AppCompatActivity { } catch (Exception e) { Toast.makeText(getApplicationContext(),getResources().getString(R.string.media_list_fail), Toast.LENGTH_SHORT).show(); } - } else if (Img.get(position).equals(R.drawable.webpage)) { + }*/ else if (Img.get(position).equals(R.drawable.webpage) || Img.get(position).equals(R.drawable.textfile)) { //load media file try { GeneratePresignedUrlRequest request = new GeneratePresignedUrlRequest(bucket, prefix + Name.get(position).toString());