talk-android/app/src/main/java/com/nextcloud/talk/contacts
Marcel Hibbe 5219eeb11f
replace userManager.currentUser usage by currentUserProvider usage
userManager.currentUser was called too often. I was not able to prove that a bug is related to it but i think it may fix some hidden bugs.

CurrentUserProviderImpl is now used throughout the code to access the current user.
userManager.currentUser is only used from CurrentUserProviderImpl whenever the _currentUser was null (should only happen on app startup)

To avoid multiple initialization of CurrentUserProviderImpl it was changed to be a @Singleton

The handling should soon be replaced with coroutine flows. However for the v21.0.0 release it's still done with RxJava to avoid bugs.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-07 13:13:38 +01:00
..
ContactsActivity.kt replace userManager.currentUser usage by currentUserProvider usage 2025-02-07 13:13:38 +01:00
ContactsActivityCompose.kt Fix bug - select contacts onclick 2024-09-11 09:30:41 +02:00
ContactsApplication.kt work on codacy warnings 2024-08-09 15:44:36 +02:00
ContactsRepository.kt Added intent handling on item click 2025-02-06 11:15:16 +01:00
ContactsRepositoryImpl.kt replace userManager.currentUser usage by currentUserProvider usage 2025-02-07 13:13:38 +01:00
ContactsViewModel.kt Added intent handling on item click 2025-02-06 11:15:16 +01:00
ImageRequest.kt test dependencies 2024-08-09 15:44:34 +02:00
SearchComponent.kt change background color for searchbar in contacts screen 2024-09-11 09:56:54 +02:00
ShareType.kt MultiSelect contacts 2024-09-05 15:41:09 +02:00