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">
-
+
-
+
-
+
-
+
-
-
\ No newline at end of file
+
+
+
diff --git a/app/src/main/res/layout/activity_register.xml b/app/src/main/res/layout/activity_register.xml
index b5c6df8..c4cf82b 100644
--- a/app/src/main/res/layout/activity_register.xml
+++ b/app/src/main/res/layout/activity_register.xml
@@ -1,95 +1,102 @@
-
+ android:layout_height="match_parent">
-
+ tools:context=".activity.RegisterActivity">
-
+
-
+
-
+
-
+
-
+
-
+
-
\ No newline at end of file
+
+
+
+
+
diff --git a/app/src/main/res/layout/fragment_new_post.xml b/app/src/main/res/layout/fragment_new_post.xml
index cf1a820..686d9ba 100644
--- a/app/src/main/res/layout/fragment_new_post.xml
+++ b/app/src/main/res/layout/fragment_new_post.xml
@@ -11,16 +11,16 @@
android:layout_height="match_parent">
@@ -28,12 +28,11 @@
android:id="@+id/send_post"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginTop="@dimen/default_margin"
android:text="@string/post_btn"
+ app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/content"
- />
+ android:layout_margin="@dimen/default_margin"/>
\ No newline at end of file