mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Increase number of columns in conversation's media list when screen is large
This commit is contained in:
parent
61be1d21d5
commit
4ef9a2bdf3
4 changed files with 6 additions and 2 deletions
|
|
@ -103,7 +103,7 @@ class ConversationMediaListFragment : SlidingPaneChildFragment() {
|
|||
binding.mediaList.addItemDecoration(headerItemDecoration)
|
||||
|
||||
binding.mediaList.setHasFixedSize(true)
|
||||
val spanCount = 4
|
||||
val spanCount = requireContext().resources.getInteger(R.integer.media_columns)
|
||||
val layoutManager = object : GridLayoutManager(requireContext(), spanCount) {
|
||||
override fun checkLayoutParams(lp: RecyclerView.LayoutParams): Boolean {
|
||||
lp.width = width / spanCount
|
||||
|
|
|
|||
|
|
@ -561,7 +561,7 @@ class MessageModel
|
|||
|
||||
@WorkerThread
|
||||
private fun downloadContent(model: FileModel, content: Content) {
|
||||
Log.d("$TAG Starting downloading content for file [${model.fileName}]")
|
||||
Log.i("$TAG Start downloading content for file [${model.fileName}]")
|
||||
|
||||
if (content.filePath.orEmpty().isEmpty()) {
|
||||
val contentName = content.name
|
||||
|
|
|
|||
|
|
@ -4,4 +4,6 @@
|
|||
<dimen name="text_input_max_width">600dp</dimen>
|
||||
<dimen name="landscape_nav_bar_width">90dp</dimen>
|
||||
<dimen name="sliding_pane_left_fragment_width">500dp</dimen>
|
||||
|
||||
<integer name="media_columns">8</integer>
|
||||
</resources>
|
||||
|
|
@ -107,4 +107,6 @@
|
|||
<dimen name="spinner_start_padding">15dp</dimen>
|
||||
<dimen name="spinner_end_padding">30dp</dimen>
|
||||
<dimen name="spinner_caret_end_margin">15dp</dimen>
|
||||
|
||||
<integer name="media_columns">4</integer>
|
||||
</resources>
|
||||
Loading…
Add table
Reference in a new issue