From 17731813e3fbe34187d20827401b4b53e2e73519 Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Thu, 15 Sep 2022 12:05:37 -0700 Subject: [PATCH] downloader template --- app/src/main/java/asgardius/page/s3manager/ObjectSelect.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java b/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java index d870345..f28932a 100644 --- a/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java +++ b/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java @@ -274,7 +274,7 @@ public class ObjectSelect extends AppCompatActivity { // Toast message on menu item clicked //Toast.makeText(MainActivity.this, "You Clicked " + menuItem.getTitle(), Toast.LENGTH_SHORT).show(); if (menuItem.getTitle() == getResources().getString(R.string.download_file)) { - Toast.makeText(ObjectSelect.this, getResources().getString(R.string.pending_feature), Toast.LENGTH_SHORT).show(); + //Toast.makeText(ObjectSelect.this, getResources().getString(R.string.pending_feature), Toast.LENGTH_SHORT).show(); //GeneratePresignedUrlRequest request = new GeneratePresignedUrlRequest(bucket, prefix + Name.get(position).toString()); //URL objectURL = s3client.generatePresignedUrl(request); //download(objectURL.toString(), Name.get(position).toString()); @@ -484,6 +484,7 @@ public class ObjectSelect extends AppCompatActivity { intent.putExtra("endpoint", endpoint); intent.putExtra("username", username); intent.putExtra("password", password); + intent.putExtra("region", location); intent.putExtra("bucket", bucket); startActivity(intent); }