Skip to content

Commit

Permalink
hotfix/MEET-2839 Hide the partial Schedule meeting finctionality for …
Browse files Browse the repository at this point in the history
…the users
  • Loading branch information
Gnzlt committed Aug 2, 2023
1 parent b958215 commit d3db5ea
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import androidx.core.view.isVisible
import androidx.lifecycle.lifecycleScope
import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.launch
import mega.privacy.android.app.R
import mega.privacy.android.app.databinding.BottomSheetMeetingBinding
import mega.privacy.android.app.databinding.BottomSheetMeetingSimpleBinding
import mega.privacy.android.app.featuretoggle.AppFeatures
import mega.privacy.android.app.interfaces.MeetingBottomSheetDialogActionListener
import mega.privacy.android.domain.usecase.featureflag.GetFeatureFlagValueUseCase
import javax.inject.Inject
Expand Down Expand Up @@ -48,9 +51,13 @@ class MeetingBottomSheetDialogFragment : BottomSheetDialogFragment(), View.OnCli
BottomSheetMeetingSimpleBinding.inflate(LayoutInflater.from(context), null, false)
binding.btnStartMeeting.setOnClickListener(this)
binding.btnJoinMeeting.setOnClickListener(this)
binding.dividerSchedule.isVisible = true
binding.btnScheduleMeeting.isVisible = true
binding.btnScheduleMeeting.setOnClickListener(this)

lifecycleScope.launch {
val scheduleMeetingEnabled = getFeatureFlagUseCase(AppFeatures.ScheduleMeeting)
binding.dividerSchedule.isVisible = scheduleMeetingEnabled
binding.btnScheduleMeeting.isVisible = scheduleMeetingEnabled
binding.btnScheduleMeeting.setOnClickListener(this@MeetingBottomSheetDialogFragment)
}

dialog.setContentView(binding.root)
} else {
Expand Down

0 comments on commit d3db5ea

Please sign in to comment.