Skip to content

Commit

Permalink
updating
Browse files Browse the repository at this point in the history
  • Loading branch information
trinif committed Oct 25, 2024
1 parent c850de0 commit a9447fd
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit a9447fd

Please sign in to comment.