mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Added onAccountRemoved + fixed FAB background color + removed setFriendsDatabasePath that no longer exists
This commit is contained in:
parent
9b69074352
commit
aab9704d24
5 changed files with 10 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 -->
|
||||
|
|
|
|||
|
|
@ -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 -->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue