From d19d67516bd88708b6171ac6ade1f4d67e07e67c Mon Sep 17 00:00:00 2001 From: Iyxan23 Date: Thu, 11 Feb 2021 17:36:14 +0700 Subject: [PATCH 1/2] fix: Collection name should be snapshot --- .../java/com/iyxan23/sketch/collab/online/UploadActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/iyxan23/sketch/collab/online/UploadActivity.java b/app/src/main/java/com/iyxan23/sketch/collab/online/UploadActivity.java index baf1467..b2d2866 100644 --- a/app/src/main/java/com/iyxan23/sketch/collab/online/UploadActivity.java +++ b/app/src/main/java/com/iyxan23/sketch/collab/online/UploadActivity.java @@ -161,7 +161,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) { progressDialog.show(); DocumentReference projectRefDoc = projectRef.document(); - CollectionReference snapshotRef = projectRefDoc.collection("logic"); + CollectionReference snapshotRef = projectRefDoc.collection("snapshot"); CollectionReference commitRef = projectRefDoc.collection("commits"); // Upload the project metadata From 9aa30fd163f437c9a8a7f4fc2838fa29fbff5818 Mon Sep 17 00:00:00 2001 From: Iyxan23 Date: Thu, 11 Feb 2021 17:37:11 +0700 Subject: [PATCH 2/2] tmp-fix: Temp fix for pagination issue --- .../java/com/iyxan23/sketch/collab/online/BrowseActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/iyxan23/sketch/collab/online/BrowseActivity.java b/app/src/main/java/com/iyxan23/sketch/collab/online/BrowseActivity.java index 9a09421..2c3974c 100644 --- a/app/src/main/java/com/iyxan23/sketch/collab/online/BrowseActivity.java +++ b/app/src/main/java/com/iyxan23/sketch/collab/online/BrowseActivity.java @@ -49,7 +49,7 @@ public class BrowseActivity extends AppCompatActivity { boolean is_at_bottom = false; // The project count that should be loaded - int project_count_should_be_loaded = 5; + int project_count_should_be_loaded = 100; // TEMP FIX, CURRENT PAGINATION IS BROKEN @Override protected void onCreate(@Nullable Bundle savedInstanceState) {