Skip to content

Commit

Permalink
fix to support different screen densities
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Hibbe <[email protected]>
  • Loading branch information
mahibi committed Nov 14, 2024
1 parent 59ee0b0 commit cd5ee2f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import com.nextcloud.talk.databinding.DialogMoreCallActionsBinding
import com.nextcloud.talk.raisehand.viewmodel.RaiseHandViewModel
import com.nextcloud.talk.ui.theme.ViewThemeUtils
import com.nextcloud.talk.utils.CapabilitiesUtil
import com.nextcloud.talk.utils.DisplayUtils
import com.nextcloud.talk.viewmodels.CallRecordingViewModel
import com.vanniktech.emoji.EmojiTextView
import javax.inject.Inject
Expand Down Expand Up @@ -96,7 +97,7 @@ class MoreCallActionsDialog(private val callActivity: CallActivity) : BottomShee
capabilities?.spreedCapability?.config!!["call"]!!["supported-reactions"] as ArrayList<*>

val param = LinearLayout.LayoutParams(
EMOJI_WIDTH,
DisplayUtils.convertDpToPixel(EMOJI_WIDTH.toFloat(), callActivity).toInt(),
LinearLayout.LayoutParams.MATCH_PARENT
)

Expand Down Expand Up @@ -184,6 +185,6 @@ class MoreCallActionsDialog(private val callActivity: CallActivity) : BottomShee
companion object {
private const val TAG = "MoreCallActionsDialog"
private const val TEXT_SIZE = 20f
private const val EMOJI_WIDTH = 80
private const val EMOJI_WIDTH = 40
}
}

0 comments on commit cd5ee2f

Please sign in to comment.