From 6e8e3ba0f60a2180ac31999e7ccf499305c0b402 Mon Sep 17 00:00:00 2001 From: 1HazArd1 Date: Tue, 1 Mar 2022 18:24:25 +0530 Subject: [PATCH] Small change to rename the collection name of firestore --- app/src/main/java/com/hazard/samarpan/Main2Activity.kt | 1 + app/src/main/java/com/hazard/samarpan/UserRegisterFragment.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/hazard/samarpan/Main2Activity.kt b/app/src/main/java/com/hazard/samarpan/Main2Activity.kt index 1190f2c..182f7be 100644 --- a/app/src/main/java/com/hazard/samarpan/Main2Activity.kt +++ b/app/src/main/java/com/hazard/samarpan/Main2Activity.kt @@ -24,4 +24,5 @@ class Main2Activity : AppCompatActivity() { finish() } } + } \ No newline at end of file diff --git a/app/src/main/java/com/hazard/samarpan/UserRegisterFragment.kt b/app/src/main/java/com/hazard/samarpan/UserRegisterFragment.kt index 2bea4e5..1b1fc6d 100644 --- a/app/src/main/java/com/hazard/samarpan/UserRegisterFragment.kt +++ b/app/src/main/java/com/hazard/samarpan/UserRegisterFragment.kt @@ -115,7 +115,7 @@ class UserRegisterFragment : Fragment() { ).show() //collecting the user data from the app with the help of the below method - val documentReference :DocumentReference=db.collection("donors").document( + val documentReference :DocumentReference=db.collection("users").document( user?.uid ?: "" ) val donorInfo: MutableMap = HashMap()