fix region selector

This commit is contained in:
Page Asgardius 2022-09-08 10:55:53 -07:00
parent 77b8b11fb7
commit 4e682b9334
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);