fix region selector
This commit is contained in:
parent
77b8b11fb7
commit
4e682b9334
2 changed files with 2 additions and 2 deletions
|
@ -124,7 +124,7 @@ public class AccountAdd extends AppCompatActivity {
|
||||||
if (location.equals("")) {
|
if (location.equals("")) {
|
||||||
location = "us-east-1";
|
location = "us-east-1";
|
||||||
}
|
}
|
||||||
region = Region.getRegion(location);
|
region = Region.getRegion("us-east-1");
|
||||||
S3ClientOptions s3ClientOptions = S3ClientOptions.builder().build();
|
S3ClientOptions s3ClientOptions = S3ClientOptions.builder().build();
|
||||||
if (!endpoint.contains(getResources().getString(R.string.aws_endpoint))) {
|
if (!endpoint.contains(getResources().getString(R.string.aws_endpoint))) {
|
||||||
s3ClientOptions.setPathStyleAccess(true);
|
s3ClientOptions.setPathStyleAccess(true);
|
||||||
|
|
|
@ -41,7 +41,7 @@ public class BucketSelect extends AppCompatActivity {
|
||||||
location = getIntent().getStringExtra("region");
|
location = getIntent().getStringExtra("region");
|
||||||
prefix = "";
|
prefix = "";
|
||||||
setContentView(R.layout.activity_bucket_select);
|
setContentView(R.layout.activity_bucket_select);
|
||||||
Region region = Region.getRegion(location);
|
Region region = Region.getRegion("us-east-1");
|
||||||
S3ClientOptions s3ClientOptions = S3ClientOptions.builder().build();
|
S3ClientOptions s3ClientOptions = S3ClientOptions.builder().build();
|
||||||
if (!endpoint.contains(getResources().getString(R.string.aws_endpoint))) {
|
if (!endpoint.contains(getResources().getString(R.string.aws_endpoint))) {
|
||||||
s3ClientOptions.setPathStyleAccess(true);
|
s3ClientOptions.setPathStyleAccess(true);
|
||||||
|
|
Loading…
Reference in a new issue