Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazel Wright committed Jun 19, 2023
2 parents a7af026 + ac93a80 commit 4ecce0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/com/example/drp25/MatchActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class MatchActivity : AppCompatActivity() {
val sharedInterests = mutableListOf<String>()

/* Generates TextViews for each interest. */
interestsTable.removeAllViews()
for (interest in snapshot.child("interests").children) {
if (interest.key?.let { usSnapshot.hasChild(it) } == true) {
// This interest is shared
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/example/drp25/UserProfileActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class UserProfileActivity : AppCompatActivity() {
}
})

binding.interestsTable.removeAllViews()
for (interest in snapshot.child("interests").children) {
val inflater = LayoutInflater.from(this@UserProfileActivity)
val rowView = inflater.inflate(R.layout.profile_interest, binding.interestsTable, false) as TableRow
Expand Down

0 comments on commit 4ecce0c

Please sign in to comment.