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())