mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-17 12:58:28 +00:00
Fixed wrong constraint in call transfer layout & lists not updated when switching default account
This commit is contained in:
parent
c492d99b09
commit
973398307c
5 changed files with 20 additions and 25 deletions
|
|
@ -100,7 +100,7 @@ class ConversationsListFragment : AbstractMainFragment() {
|
|||
Log.i(
|
||||
"$TAG Default account changed, updating avatar in top bar & re-computing conversations"
|
||||
)
|
||||
listViewModel.applyFilter()
|
||||
listViewModel.filter()
|
||||
}
|
||||
|
||||
override fun onCreateAnimation(transit: Int, enter: Boolean, nextAnim: Int): Animation? {
|
||||
|
|
|
|||
|
|
@ -188,10 +188,7 @@ class ContactsListViewModel
|
|||
override fun filter() {
|
||||
isListFiltered.value = currentFilter.isNotEmpty()
|
||||
coreContext.postOnCoreThread {
|
||||
applyFilter(
|
||||
currentFilter,
|
||||
domainFilter
|
||||
)
|
||||
applyFilter(currentFilter, domainFilter)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -202,9 +199,7 @@ class ContactsListViewModel
|
|||
areAllContactsDisplayed.postValue(domainFilter.isEmpty())
|
||||
checkIfDefaultAccountOnDefaultDomain()
|
||||
|
||||
coreContext.postOnMainThread {
|
||||
applyFilter(currentFilter)
|
||||
}
|
||||
applyFilter(currentFilter, domainFilter)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ class HistoryListFragment : AbstractMainFragment() {
|
|||
Log.i(
|
||||
"$TAG Default account changed, updating avatar in top bar & re-computing call logs"
|
||||
)
|
||||
listViewModel.applyFilter()
|
||||
listViewModel.filter()
|
||||
}
|
||||
|
||||
override fun onCreateAnimation(transit: Int, enter: Boolean, nextAnim: Int): Animation? {
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ class MeetingsListFragment : AbstractMainFragment() {
|
|||
Log.i(
|
||||
"$TAG Default account changed, updating avatar in top bar & re-computing meetings list"
|
||||
)
|
||||
listViewModel.applyFilter()
|
||||
listViewModel.filter()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -176,7 +176,7 @@ class MeetingsListFragment : AbstractMainFragment() {
|
|||
|
||||
meetingViewModelBeingCancelled?.delete()
|
||||
meetingViewModelBeingCancelled = null
|
||||
listViewModel.applyFilter()
|
||||
listViewModel.filter()
|
||||
|
||||
(requireActivity() as GenericActivity).showGreenToast(
|
||||
getString(R.string.meeting_info_deleted_toast),
|
||||
|
|
@ -201,7 +201,7 @@ class MeetingsListFragment : AbstractMainFragment() {
|
|||
} else {
|
||||
Log.i("$TAG Deleting meeting [${model.id}]")
|
||||
model.delete()
|
||||
listViewModel.applyFilter()
|
||||
listViewModel.filter()
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
@ -213,7 +213,7 @@ class MeetingsListFragment : AbstractMainFragment() {
|
|||
sharedViewModel.forceRefreshMeetingsListEvent.observe(viewLifecycleOwner) {
|
||||
it.consume {
|
||||
Log.i("$TAG We were asked to refresh the meetings list, doing it now")
|
||||
listViewModel.applyFilter()
|
||||
listViewModel.filter()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -229,22 +229,22 @@
|
|||
app:layout_constraintTop_toBottomOf="@id/results_limit_reached"
|
||||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/fetch_in_progress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:indeterminate="true"
|
||||
android:visibility="@{viewModel.searchInProgress ? View.VISIBLE : View.GONE}"
|
||||
app:indicatorColor="?attr/color_main1_500"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/search_bar"
|
||||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/fetch_in_progress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:indeterminate="true"
|
||||
android:visibility="@{viewModel.searchInProgress ? View.VISIBLE : View.GONE}"
|
||||
app:indicatorColor="?attr/color_main1_500"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/search_bar"
|
||||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/show_numpad"
|
||||
android:onClick="@{() -> viewModel.switchBetweenKeyboardAndNumpad()}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue