From 9c51283f2b04edc69aebed1771597df5e8591386 Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Mon, 5 Sep 2022 11:17:28 -0700 Subject: [PATCH] code cleanup --- .../page/s3manager/ObjectSelect.java | 25 ++----------------- .../res/layout/activity_bucket_select.xml | 1 - .../res/layout/activity_object_select.xml | 1 - 3 files changed, 2 insertions(+), 25 deletions(-) diff --git a/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java b/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java index 45089b3..871c0c8 100644 --- a/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java +++ b/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java @@ -73,7 +73,7 @@ public class ObjectSelect extends AppCompatActivity { try { //Your code goes here //List buckets = s3client.listBuckets(); - ListObjectsRequest orequest = new ListObjectsRequest().withBucketName(bucket).withPrefix(prefix).withMaxKeys(2000); + ListObjectsRequest orequest = new ListObjectsRequest().withBucketName(bucket).withPrefix(prefix).withMaxKeys(8000); //List objects = (List) s3client.listObjects(bucket, "/"); ObjectListing result = s3client.listObjects(orequest); //System.out.println(objects); @@ -109,6 +109,7 @@ public class ObjectSelect extends AppCompatActivity { Name = new ArrayList(object); object.clear(); //Img.add(R.drawable.unknownfile); + //This set object icon based on its filetype int i = 0; while(i= 2) { - path = prefix.split("/"); - prefix = ""; - int i = 0; - //System.out.println("path "+i); - while(i <= path.length-2) { - prefix = prefix.concat(path[i]); - prefix = prefix.concat("/"); - //System.out.println("position "+i); - i++; - } - } - else if (treelevel == 1) { - prefix = ""; - } - treelevel --; - //System.out.println("tree "+treelevel); - //System.out.println("prefix "+prefix); - finish(); - } } \ No newline at end of file diff --git a/app/src/main/res/layout/activity_bucket_select.xml b/app/src/main/res/layout/activity_bucket_select.xml index 251f57b..c63f650 100644 --- a/app/src/main/res/layout/activity_bucket_select.xml +++ b/app/src/main/res/layout/activity_bucket_select.xml @@ -21,7 +21,6 @@ android:layout_height="fill_parent" android:max="100" android:progress="50" - android:background="@color/design_default_color_background" android:padding="20dp" tools:ignore="MissingConstraints" android:indeterminate="true" /> diff --git a/app/src/main/res/layout/activity_object_select.xml b/app/src/main/res/layout/activity_object_select.xml index 149fb63..fc2d179 100644 --- a/app/src/main/res/layout/activity_object_select.xml +++ b/app/src/main/res/layout/activity_object_select.xml @@ -21,7 +21,6 @@ android:layout_height="fill_parent" android:max="100" android:progress="50" - android:background="@color/design_default_color_background" android:padding="20dp" tools:ignore="MissingConstraints" android:indeterminate="true" />