new release

This commit is contained in:
Page Asgardius 2022-12-30 21:50:14 -07:00
parent 7dff026db1
commit 697d2b8b07
3 changed files with 3 additions and 5 deletions

View file

@ -9,7 +9,7 @@ android {
applicationId "asgardius.page.s3manager" applicationId "asgardius.page.s3manager"
minSdk 23 minSdk 23
targetSdk 33 targetSdk 33
versionCode 55 versionCode 56
versionName "0.6.0" versionName "0.6.0"
setProperty("archivesBaseName", "s3-manager-$versionName") setProperty("archivesBaseName", "s3-manager-$versionName")

View file

@ -48,7 +48,6 @@ import java.util.List;
public class Uploader extends AppCompatActivity { public class Uploader extends AppCompatActivity {
String username, password, endpoint, bucket, prefix, location; String username, password, endpoint, bucket, prefix, location;
int progress;
Uri fileuri, folder; Uri fileuri, folder;
EditText fprefix; EditText fprefix;
TextView fprefixlabel; TextView fprefixlabel;
@ -130,13 +129,13 @@ public class Uploader extends AppCompatActivity {
} }
//eUpload.setEnabled(false); //eUpload.setEnabled(false);
fileUpload.setText(getResources().getString(R.string.cancel_upload)); fileUpload.setText(getResources().getString(R.string.cancel_upload));
fprefix.setEnabled(false);
uploadFile = new Thread(new Runnable() { uploadFile = new Thread(new Runnable() {
@Override @Override
public void run() { public void run() {
//System.out.println(fkey); //System.out.println(fkey);
progress = 0; //filesize = 0;
filesize = 0;
try { try {
//Your code goes here //Your code goes here
//s3client.createBucket(bucket, location); //s3client.createBucket(bucket, location);
@ -147,7 +146,6 @@ public class Uploader extends AppCompatActivity {
} else { } else {
prefix = fprefix.getText().toString().concat("/"); prefix = fprefix.getText().toString().concat("/");
} }
fprefix.setEnabled(false);
document = DocumentFile.fromTreeUri(getApplicationContext(), fileuri); document = DocumentFile.fromTreeUri(getApplicationContext(), fileuri);
DocumentFile[] filelist = document.listFiles(); DocumentFile[] filelist = document.listFiles();
ArrayList<String> filepath = new ArrayList<String>(); ArrayList<String> filepath = new ArrayList<String>();