라이브 방 - 배너 광고 제거
This commit is contained in:
@@ -32,7 +32,6 @@ import androidx.recyclerview.widget.RecyclerView
|
||||
import coil.load
|
||||
import coil.transform.CircleCropTransformation
|
||||
import com.github.dhaval2404.imagepicker.ImagePicker
|
||||
import com.google.android.gms.ads.AdRequest
|
||||
import com.google.gson.Gson
|
||||
import com.orhanobut.logger.Logger
|
||||
import io.agora.rtc2.ClientRoleOptions
|
||||
@@ -176,7 +175,6 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||
|
||||
override fun setupView() {
|
||||
bindData()
|
||||
setupAdMob()
|
||||
|
||||
loadingDialog = LoadingDialog(this, layoutInflater)
|
||||
imm = getSystemService(
|
||||
@@ -393,16 +391,6 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||
setupSpeakerListAdapter()
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
binding.adView.resume()
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
binding.adView.pause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
hideKeyboard {
|
||||
viewModel.quitRoom(roomId) {
|
||||
@@ -410,14 +398,9 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||
agora.deInitAgoraEngine()
|
||||
}
|
||||
}
|
||||
binding.adView.destroy()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
private fun setupAdMob() {
|
||||
binding.adView.loadAd(AdRequest.Builder().build())
|
||||
}
|
||||
|
||||
private fun showOptionMenu(
|
||||
context: Context,
|
||||
userId: Long,
|
||||
|
Reference in New Issue
Block a user