From 255f69ad8f6443901242b66d672009a15cfd7de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedek=20L=C3=A1szl=C3=B3?= Date: Wed, 8 May 2024 20:48:05 +0200 Subject: [PATCH] login/register scroll --- app/build.gradle | 1 + .../com/dowerx/quack/service/PostService.java | 2 +- app/src/main/res/layout/activity_main.xml | 124 +++++++------ app/src/main/res/layout/activity_register.xml | 171 +++++++++--------- app/src/main/res/layout/fragment_new_post.xml | 11 +- 5 files changed, 160 insertions(+), 149 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 1595c1e..df0d212 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -25,6 +25,7 @@ android { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + signingConfig signingConfigs.debug } } compileOptions { diff --git a/app/src/main/java/com/dowerx/quack/service/PostService.java b/app/src/main/java/com/dowerx/quack/service/PostService.java index 8136e82..dedabaa 100644 --- a/app/src/main/java/com/dowerx/quack/service/PostService.java +++ b/app/src/main/java/com/dowerx/quack/service/PostService.java @@ -42,7 +42,7 @@ public class PostService { FirebaseFirestore db = FirebaseFirestore.getInstance(); try { - for (QueryDocumentSnapshot post : Tasks.await(db.collection("/post").limit(10).get())) { + for (QueryDocumentSnapshot post : Tasks.await(db.collection("/post").get())) { DocumentSnapshot user = Tasks.await(post.getDocumentReference("user").get()); String username = user.get("username", String.class); String email = user.get("email", String.class); diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 98cf674..fca2da1 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,70 +1,74 @@ - + android:layout_height="match_parent"> - + tools:context=".activity.MainActivity"> - + - + -