Skip to content

Commit

Permalink
address changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rlam20 committed Jul 1, 2024
1 parent 3e62209 commit 4730a62
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.ole.planet.myplanet.ui.team

import android.annotation.SuppressLint
import android.content.DialogInterface
import android.os.Build
import android.os.Bundle
Expand Down Expand Up @@ -115,9 +114,7 @@ class MyTeamsDetailFragment : BaseNewsFragment() {
map["message"] = msg
map["messageType"] = team?.teamType!!
map["messagePlanetCode"] = team?.teamPlanetCode!!
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
createNews(map, mRealm, user, imageList)
}
createNews(map, mRealm, user, imageList)
rvDiscussion.adapter?.notifyItemInserted(0)
}.setNegativeButton(R.string.cancel, null).show()
}
Expand Down Expand Up @@ -238,7 +235,6 @@ class MyTeamsDetailFragment : BaseNewsFragment() {
llRv.visibility = View.GONE
tab.setText(s)
listContent.adapter = object : ArrayAdapter<RealmUserModel?>(requireActivity(), android.R.layout.simple_list_item_1, data) {
@SuppressLint("SetTextI18n")
override fun getView(position: Int, convert_View: View?, parent: ViewGroup): View {
var convertView = convert_View
if (convertView == null) {
Expand Down Expand Up @@ -279,4 +275,4 @@ class MyTeamsDetailFragment : BaseNewsFragment() {
override fun setData(list: List<RealmNews?>?) {
showRecyclerView(list)
}
}
}

0 comments on commit 4730a62

Please sign in to comment.