From 64f04e4f532597cb8e17df80d4d9b4b6f0fc5504 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 16 Feb 2026 15:03:33 +0100 Subject: [PATCH] Improved account profile page with section header & connection in progress indicator --- .../viewmodel/AccountProfileViewModel.kt | 1 + .../res/layout/account_profile_fragment.xml | 35 ++++++++++++++++--- .../main/res/layout/meeting_edit_fragment.xml | 2 ++ .../res/layout/meeting_schedule_fragment.xml | 2 ++ app/src/main/res/values-fr/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 6 files changed, 38 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/linphone/ui/main/settings/viewmodel/AccountProfileViewModel.kt b/app/src/main/java/org/linphone/ui/main/settings/viewmodel/AccountProfileViewModel.kt index 72c55e5bf..84fd96677 100644 --- a/app/src/main/java/org/linphone/ui/main/settings/viewmodel/AccountProfileViewModel.kt +++ b/app/src/main/java/org/linphone/ui/main/settings/viewmodel/AccountProfileViewModel.kt @@ -353,6 +353,7 @@ class AccountProfileViewModel registerEnabled.postValue(account.params.isRegisterEnabled) if (!core.isNetworkReachable) { + Log.w("$TAG Network is not reachable, updating registration state to reflect that") // To reflect the difference between Disabled & Disconnected accountModel.value?.updateRegistrationState() } diff --git a/app/src/main/res/layout/account_profile_fragment.xml b/app/src/main/res/layout/account_profile_fragment.xml index 2b9934328..497649d3a 100644 --- a/app/src/main/res/layout/account_profile_fragment.xml +++ b/app/src/main/res/layout/account_profile_fragment.xml @@ -5,6 +5,7 @@ + @@ -376,22 +377,35 @@ + + + app:layout_constraintTop_toBottomOf="@id/registration_status"> + + diff --git a/app/src/main/res/layout/meeting_schedule_fragment.xml b/app/src/main/res/layout/meeting_schedule_fragment.xml index 2fe6d82a2..42e987fc0 100644 --- a/app/src/main/res/layout/meeting_schedule_fragment.xml +++ b/app/src/main/res/layout/meeting_schedule_fragment.xml @@ -327,6 +327,8 @@ android:spinnerMode="dropdown" android:popupBackground="@drawable/shape_squircle_white_background" android:background="@drawable/edit_text_background" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintWidth_max="@dimen/text_input_max_width" app:layout_constraintTop_toBottomOf="@id/timezone_label" app:layout_constraintStart_toStartOf="@id/timezone_label" app:layout_constraintEnd_toEndOf="parent" /> diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 622737479..2cb85ed93 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -347,6 +347,7 @@ Ajouter une image Modifier Supprimer + État de la connexion Vous êtes en ligne, on peut vous joindre. Vous êtes hors ligne, probablement car vous n\'êtes pas actuellement connecté à internet. Compte désactivé, vous ne recevrez ni appel ni message. diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 748021857..195b0565a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -389,6 +389,7 @@ Add a picture Edit picture Remove picture + Connection status This account in online, everybody can call you. This account in offline, probably because you aren\'t connected to internet right now. Account has been disabled, you won\'t receive any call or message.