Improved notifications + disable fullscreen mode for now, too many UI glitches

This commit is contained in:
Sylvain Berfini 2020-08-26 17:51:03 +02:00
parent f51d67d3f9
commit 9e4a2a48e4
32 changed files with 8 additions and 3 deletions

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 644 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 833 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 926 B

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 756 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 986 B

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 506 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 896 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 998 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -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}"