From a9447fddf92a0103c2b0f1259f91c8308fc1d46a Mon Sep 17 00:00:00 2001 From: trinif Date: Fri, 25 Oct 2024 17:26:24 -0400 Subject: [PATCH] updating --- .../labs/pennmobile/Subletting/SublesseeInterestForm.kt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/Subletting/SublesseeInterestForm.kt b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/Subletting/SublesseeInterestForm.kt index 06f185f4..ed061356 100644 --- a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/Subletting/SublesseeInterestForm.kt +++ b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/Subletting/SublesseeInterestForm.kt @@ -1,6 +1,7 @@ package com.pennapps.labs.pennmobile.Subletting import android.os.Bundle +import android.util.Log import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View @@ -54,6 +55,14 @@ class SublesseeInterestForm (id: Int): Fragment() { email = "" ) + /* dataModel.addSavedSublet(mActivity, sublet.id!!, sublet) { sublet -> + if (sublet != null) { + Log.i("MainActivity", "Sublet ID: ${sublet.id}") + } else { + // Handle failure to post sublet + Log.e("MainActivity", "Failed to post sublet") + } } */ + Toast.makeText(mActivity, "Your message has been sent!", Toast.LENGTH_LONG).show() mActivity.supportFragmentManager.beginTransaction() .replace(((view as ViewGroup).parent as View).id, SublesseeSavedFragment())