Added onAccountRemoved + fixed FAB background color + removed setFriendsDatabasePath that no longer exists

This commit is contained in:
Sylvain Berfini 2023-12-01 14:55:30 +01:00
parent 9b69074352
commit aab9704d24
5 changed files with 10 additions and 9 deletions

View file

@ -123,7 +123,7 @@ dependencies {
android.defaultConfig.manifestPlaceholders = [appAuthRedirectScheme: 'org.linphone.sso']
//noinspection GradleDynamicVersion
implementation 'org.linphone:linphone-sdk-android:5.3+'
implementation 'org.linphone:linphone-sdk-android:5.3.0-alpha+'
}
ktlint {

View file

@ -180,8 +180,6 @@ class CoreContext @UiThread constructor(val context: Context) : HandlerThread("C
core.isAutoIterateEnabled = true
core.addListener(coreListener)
core.friendsDatabasePath = corePreferences.friendsDatabasePath
computeUserAgent()
core.start()
@ -193,6 +191,7 @@ class CoreContext @UiThread constructor(val context: Context) : HandlerThread("C
Looper.loop()
}
@Deprecated("Deprecated in Java")
@WorkerThread
override fun destroy() {
core.stop()

View file

@ -82,6 +82,14 @@ class DrawerMenuViewModel @UiThread constructor() : ViewModel() {
)
computeAccountsList()
}
@WorkerThread
override fun onAccountRemoved(core: Core, account: Account) {
Log.i(
"$TAG Account [${account.params.identityAddress?.asStringUriOnly()}] has been removed from the Core"
)
computeAccountsList()
}
}
init {

View file

@ -6,9 +6,6 @@
</style>
<!-- Base application theme. -->
<style name="Theme.Linphone" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/orange_main_500</item>
<item name="colorSurface">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor">@color/orange_main_500</item>
<!-- https://developer.android.com/guide/topics/display-cutout#best_practices_for_display_cutout_support -->

View file

@ -7,9 +7,6 @@
<!-- Base application theme. -->
<style name="Theme.Linphone" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/orange_main_500</item>
<item name="colorSurface">@color/white</item>
<!-- Status bar color. -->
<item name="android:statusBarColor">@color/orange_main_500</item>
<!-- https://developer.android.com/guide/topics/display-cutout#best_practices_for_display_cutout_support -->