diff --git a/app/src/main/java/asgardius/page/s3manager/BucketSelect.java b/app/src/main/java/asgardius/page/s3manager/BucketSelect.java index 530e61f..70c445f 100644 --- a/app/src/main/java/asgardius/page/s3manager/BucketSelect.java +++ b/app/src/main/java/asgardius/page/s3manager/BucketSelect.java @@ -10,6 +10,7 @@ import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.view.View; +import android.widget.ProgressBar; import android.widget.Toast; import com.amazonaws.auth.AWSCredentials; @@ -48,6 +49,7 @@ public class BucketSelect extends AppCompatActivity { s3client.setS3ClientOptions(s3ClientOptions); recyclerView = findViewById(R.id.blist); + final ProgressBar simpleProgressBar = (ProgressBar) findViewById(R.id.simpleProgressBar); // layout for vertical orientation LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getApplicationContext()); @@ -79,6 +81,7 @@ public class BucketSelect extends AppCompatActivity { public void run() { // Sending reference and data to Adapter Adapter adapter = new Adapter(BucketSelect.this, Img, Name); + simpleProgressBar.setVisibility(View.INVISIBLE); // Setting Adapter to RecyclerView recyclerView.setAdapter(adapter); diff --git a/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java b/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java index 7c97441..45089b3 100644 --- a/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java +++ b/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java @@ -9,6 +9,7 @@ import androidx.recyclerview.widget.RecyclerView; import android.content.Intent; import android.os.Bundle; import android.view.View; +import android.widget.ProgressBar; import android.widget.Toast; import com.amazonaws.auth.AWSCredentials; @@ -60,6 +61,7 @@ public class ObjectSelect extends AppCompatActivity { s3client.setS3ClientOptions(s3ClientOptions); recyclerView = findViewById(R.id.olist); + final ProgressBar simpleProgressBar = (ProgressBar) findViewById(R.id.simpleProgressBar); // layout for vertical orientation LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getApplicationContext()); @@ -146,6 +148,7 @@ public class ObjectSelect extends AppCompatActivity { public void run() { // Sending reference and data to Adapter Adapter adapter = new Adapter(ObjectSelect.this, Img, Name); + simpleProgressBar.setVisibility(View.INVISIBLE); // Setting Adapter to RecyclerView recyclerView.setAdapter(adapter); diff --git a/app/src/main/res/layout/activity_bucket_select.xml b/app/src/main/res/layout/activity_bucket_select.xml index b4d2780..251f57b 100644 --- a/app/src/main/res/layout/activity_bucket_select.xml +++ b/app/src/main/res/layout/activity_bucket_select.xml @@ -14,4 +14,16 @@ app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.0" tools:layout_editor_absoluteX="-27dp" /> + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_object_select.xml b/app/src/main/res/layout/activity_object_select.xml index 211aa2c..149fb63 100644 --- a/app/src/main/res/layout/activity_object_select.xml +++ b/app/src/main/res/layout/activity_object_select.xml @@ -15,4 +15,15 @@ app:layout_constraintVertical_bias="0.0" tools:layout_editor_absoluteX="-27dp" /> + + \ No newline at end of file