Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
linphone-android
Commits
690f6fa4
Commit
690f6fa4
authored
5 months ago
by
Sylvain Berfini
Browse files
Options
Download
Patches
Plain Diff
Fixed rounded corners of main lists not properly applied on old Android versions
parent
45cfac3a
master
feature/show_unsecure_conversation_event_at_top
feature/use_theme_main_color_for_icon_and_splashscreen
fix/insistent_notification
fix/reduce_number_of_jni_ref
fix/telecom_default_audio_endpoint
release/6.0
6.1.0-alpha
6.0.0
6.0.0-beta
1 merge request
!1530
Fixed rounded corners of main lists not properly applied on old Android versions
Pipeline
#83297
passed with stage
in 5 minutes and 11 seconds
Changes
5
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
app/src/main/java/org/linphone/ui/main/chat/fragment/ConversationsListFragment.kt
+1
-0
...nphone/ui/main/chat/fragment/ConversationsListFragment.kt
app/src/main/java/org/linphone/ui/main/fragment/AbstractMainFragment.kt
+10
-0
...ava/org/linphone/ui/main/fragment/AbstractMainFragment.kt
app/src/main/java/org/linphone/ui/main/history/fragment/HistoryListFragment.kt
+1
-0
.../linphone/ui/main/history/fragment/HistoryListFragment.kt
app/src/main/java/org/linphone/ui/main/meetings/fragment/MeetingsListFragment.kt
+1
-0
...inphone/ui/main/meetings/fragment/MeetingsListFragment.kt
app/src/main/res/values/dimen.xml
+1
-0
app/src/main/res/values/dimen.xml
with
14 additions
and
0 deletions
app/src/main/java/org/linphone/ui/main/chat/fragment/ConversationsListFragment.kt
+
1
−
0
View file @
690f6fa4
...
...
@@ -119,6 +119,7 @@ class ConversationsListFragment : AbstractMainFragment() {
binding
.
conversationsList
.
setHasFixedSize
(
true
)
binding
.
conversationsList
.
layoutManager
=
LinearLayoutManager
(
requireContext
())
binding
.
conversationsList
.
outlineProvider
=
outlineProvider
binding
.
conversationsList
.
clipToOutline
=
true
adapter
.
conversationLongClickedEvent
.
observe
(
viewLifecycleOwner
)
{
...
...
This diff is collapsed.
Click to expand it.
app/src/main/java/org/linphone/ui/main/fragment/AbstractMainFragment.kt
+
10
−
0
View file @
690f6fa4
...
...
@@ -20,9 +20,11 @@
package
org.linphone.ui.main.fragment
import
android.content.res.Configuration
import
android.graphics.Outline
import
android.os.Bundle
import
android.view.View
import
android.view.ViewGroup
import
android.view.ViewOutlineProvider
import
android.view.inputmethod.EditorInfo
import
androidx.activity.OnBackPressedCallback
import
androidx.annotation.IdRes
...
...
@@ -54,6 +56,14 @@ abstract class AbstractMainFragment : GenericMainFragment() {
private
const
val
TAG
=
"[Abstract Main Fragment]"
}
protected
val
outlineProvider
=
object
:
ViewOutlineProvider
()
{
override
fun
getOutline
(
view
:
View
?,
outline
:
Outline
?)
{
val
radius
=
resources
.
getDimension
(
R
.
dimen
.
top_bar_rounded_corner_radius
)
view
?:
return
outline
?.
setRoundRect
(
0
,
0
,
view
.
width
,
(
view
.
height
+
radius
).
toInt
(),
radius
)
}
}
private
var
currentFragmentId
:
Int
=
0
private
lateinit
var
viewModel
:
AbstractMainViewModel
...
...
This diff is collapsed.
Click to expand it.
app/src/main/java/org/linphone/ui/main/history/fragment/HistoryListFragment.kt
+
1
−
0
View file @
690f6fa4
...
...
@@ -106,6 +106,7 @@ class HistoryListFragment : AbstractMainFragment() {
binding
.
historyList
.
setHasFixedSize
(
true
)
binding
.
historyList
.
layoutManager
=
LinearLayoutManager
(
requireContext
())
binding
.
historyList
.
outlineProvider
=
outlineProvider
binding
.
historyList
.
clipToOutline
=
true
adapter
.
callLogLongClickedEvent
.
observe
(
viewLifecycleOwner
)
{
...
...
This diff is collapsed.
Click to expand it.
app/src/main/java/org/linphone/ui/main/meetings/fragment/MeetingsListFragment.kt
+
1
−
0
View file @
690f6fa4
...
...
@@ -118,6 +118,7 @@ class MeetingsListFragment : AbstractMainFragment() {
val
headerItemDecoration
=
RecyclerViewHeaderDecoration
(
requireContext
(),
adapter
)
binding
.
meetingsList
.
addItemDecoration
(
headerItemDecoration
)
binding
.
meetingsList
.
outlineProvider
=
outlineProvider
binding
.
meetingsList
.
clipToOutline
=
true
binding
.
setNewMeetingClicked
{
...
...
This diff is collapsed.
Click to expand it.
app/src/main/res/values/dimen.xml
+
1
−
0
View file @
690f6fa4
...
...
@@ -42,6 +42,7 @@
<dimen
name=
"primary_secondary_buttons_label_padding"
>
11dp
</dimen>
<dimen
name=
"dialog_top_bottom_margin"
>
20dp
</dimen>
<dimen
name=
"top_bar_rounded_corner_radius"
>
20dp
</dimen>
<dimen
name=
"top_bar_shadow_height"
>
54dp
</dimen>
<dimen
name=
"top_bar_height"
>
55dp
</dimen>
<dimen
name=
"toast_top_margin"
>
70dp
</dimen>
<!-- 15dp + top_bar_height -->
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets