Improved notifications + disable fullscreen mode for now, too many UI glitches
|
@ -421,7 +421,7 @@ class NotificationsManager(private val context: Context) {
|
|||
context, context.getString(R.string.notification_channel_incoming_call_id))
|
||||
.setContentTitle(context.getString(R.string.missed_call_notification_title))
|
||||
.setContentText(body)
|
||||
.setSmallIcon(R.drawable.call_status_missed)
|
||||
.setSmallIcon(R.drawable.topbar_missed_call_notification)
|
||||
.setAutoCancel(true)
|
||||
.setContentIntent(pendingIntent)
|
||||
.setCategory(Notification.CATEGORY_EVENT)
|
||||
|
@ -453,12 +453,16 @@ class NotificationsManager(private val context: Context) {
|
|||
Call.State.Paused, Call.State.Pausing, Call.State.PausedByRemote -> {
|
||||
callActivity = CallActivity::class.java
|
||||
stringResourceId = R.string.call_notification_paused
|
||||
iconResourceId = R.drawable.topbar_call_notification
|
||||
iconResourceId = R.drawable.topbar_call_paused_notification
|
||||
}
|
||||
Call.State.OutgoingRinging, Call.State.OutgoingProgress, Call.State.OutgoingInit, Call.State.OutgoingEarlyMedia -> {
|
||||
callActivity = OutgoingCallActivity::class.java
|
||||
stringResourceId = R.string.call_notification_outgoing
|
||||
iconResourceId = R.drawable.topbar_call_notification
|
||||
iconResourceId = if (call.params.videoEnabled()) {
|
||||
R.drawable.topbar_videocall_notification
|
||||
} else {
|
||||
R.drawable.topbar_call_notification
|
||||
}
|
||||
}
|
||||
else -> {
|
||||
callActivity = CallActivity::class.java
|
||||
|
|
BIN
app/src/main/res/drawable-hdpi/topbar_call_notification.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 712 B |
BIN
app/src/main/res/drawable-hdpi/topbar_chat_notification.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.1 KiB |
BIN
app/src/main/res/drawable-hdpi/topbar_service_notification.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
app/src/main/res/drawable-hdpi/topbar_videocall_notification.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
app/src/main/res/drawable-mdpi/topbar_call_notification.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 644 B |
BIN
app/src/main/res/drawable-mdpi/topbar_chat_notification.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/drawable-mdpi/topbar_service_notification.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
app/src/main/res/drawable-mdpi/topbar_videocall_notification.png
Normal file
After Width: | Height: | Size: 833 B |
Before Width: | Height: | Size: 926 B After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 756 B |
Before Width: | Height: | Size: 986 B After Width: | Height: | Size: 2 KiB |
After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 506 B After Width: | Height: | Size: 1.1 KiB |
BIN
app/src/main/res/drawable-xxhdpi/topbar_call_notification.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 896 B |
BIN
app/src/main/res/drawable-xxhdpi/topbar_chat_notification.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 4.5 KiB |
BIN
app/src/main/res/drawable-xxhdpi/topbar_service_notification.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/topbar_call_notification.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 998 B |
BIN
app/src/main/res/drawable-xxxhdpi/topbar_chat_notification.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 4 KiB |
After Width: | Height: | Size: 8.4 KiB |
After Width: | Height: | Size: 1.5 KiB |
|
@ -97,6 +97,7 @@
|
|||
|
||||
<include
|
||||
layout="@layout/settings_widget_switch"
|
||||
android:visibility="@{View.GONE}"
|
||||
linphone:title="@{@string/advanced_settings_full_screen_title}"
|
||||
linphone:subtitle="@{@string/advanced_settings_full_screen_summary}"
|
||||
linphone:listener="@{viewModel.fullScreenListener}"
|
||||
|
|