From 4e682b9334ab4b76268160a7d5cbf80778f37c1c Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Thu, 8 Sep 2022 10:55:53 -0700 Subject: [PATCH] fix region selector --- app/src/main/java/asgardius/page/s3manager/AccountAdd.java | 2 +- app/src/main/java/asgardius/page/s3manager/BucketSelect.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/asgardius/page/s3manager/AccountAdd.java b/app/src/main/java/asgardius/page/s3manager/AccountAdd.java index e86edc6..5f40d26 100644 --- a/app/src/main/java/asgardius/page/s3manager/AccountAdd.java +++ b/app/src/main/java/asgardius/page/s3manager/AccountAdd.java @@ -124,7 +124,7 @@ public class AccountAdd extends AppCompatActivity { if (location.equals("")) { location = "us-east-1"; } - region = Region.getRegion(location); + region = Region.getRegion("us-east-1"); S3ClientOptions s3ClientOptions = S3ClientOptions.builder().build(); if (!endpoint.contains(getResources().getString(R.string.aws_endpoint))) { s3ClientOptions.setPathStyleAccess(true); diff --git a/app/src/main/java/asgardius/page/s3manager/BucketSelect.java b/app/src/main/java/asgardius/page/s3manager/BucketSelect.java index 954f8dc..5897586 100644 --- a/app/src/main/java/asgardius/page/s3manager/BucketSelect.java +++ b/app/src/main/java/asgardius/page/s3manager/BucketSelect.java @@ -41,7 +41,7 @@ public class BucketSelect extends AppCompatActivity { location = getIntent().getStringExtra("region"); prefix = ""; setContentView(R.layout.activity_bucket_select); - Region region = Region.getRegion(location); + Region region = Region.getRegion("us-east-1"); S3ClientOptions s3ClientOptions = S3ClientOptions.builder().build(); if (!endpoint.contains(getResources().getString(R.string.aws_endpoint))) { s3ClientOptions.setPathStyleAccess(true);