fix text viewer
This commit is contained in:
parent
237e2e7006
commit
3c463f7545
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue