From aa8e7207e778b3a14951c7cd19c8c24ac2245748 Mon Sep 17 00:00:00 2001 From: Antonis Tsakiridis Date: Fri, 23 Sep 2016 16:21:58 +0300 Subject: [PATCH] Fixed #406: Testing with Android 5.1 revealed some UI issues with Notifications --- Examples/restcomm-olympus/app/olympus-version.properties | 4 ++-- .../restcomm-android-sdk-version.properties | 4 ++-- .../src/main/java/org/restcomm/android/sdk/RCDevice.java | 6 +++--- restcomm.android.sdk/src/main/res/drawable/ic_call_24dp.xml | 2 +- .../src/main/res/drawable/ic_call_end_24dp.xml | 2 +- restcomm.android.sdk/src/main/res/drawable/ic_chat_24dp.xml | 2 +- restcomm.android.sdk/src/main/res/drawable/ic_mic_24dp.xml | 2 +- .../src/main/res/drawable/ic_mic_off_24dp.xml | 2 +- .../src/main/res/drawable/ic_phone_in_talk_24dp.xml | 2 +- .../src/main/res/drawable/ic_phone_missed_24dp.xml | 2 +- .../src/main/res/drawable/ic_videocam_24dp.xml | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Examples/restcomm-olympus/app/olympus-version.properties b/Examples/restcomm-olympus/app/olympus-version.properties index 11fa80f4..dce3af8a 100644 --- a/Examples/restcomm-olympus/app/olympus-version.properties +++ b/Examples/restcomm-olympus/app/olympus-version.properties @@ -1,2 +1,2 @@ -#Fri Sep 23 14:26:47 EEST 2016 -VERSION_CODE=1500 +#Fri Sep 23 16:17:44 EEST 2016 +VERSION_CODE=1502 diff --git a/restcomm.android.sdk/restcomm-android-sdk-version.properties b/restcomm.android.sdk/restcomm-android-sdk-version.properties index e0c1fb52..0fc24cc0 100644 --- a/restcomm.android.sdk/restcomm-android-sdk-version.properties +++ b/restcomm.android.sdk/restcomm-android-sdk-version.properties @@ -1,2 +1,2 @@ -#Fri Sep 23 14:26:47 EEST 2016 -VERSION_CODE=1523 +#Fri Sep 23 16:17:44 EEST 2016 +VERSION_CODE=1525 diff --git a/restcomm.android.sdk/src/main/java/org/restcomm/android/sdk/RCDevice.java b/restcomm.android.sdk/src/main/java/org/restcomm/android/sdk/RCDevice.java index b2bad045..83314ae3 100644 --- a/restcomm.android.sdk/src/main/java/org/restcomm/android/sdk/RCDevice.java +++ b/restcomm.android.sdk/src/main/java/org/restcomm/android/sdk/RCDevice.java @@ -1183,9 +1183,9 @@ void onNotificationCall(RCConnection connection, HashMap customH // Need this to show up as Heads-up Notification .setPriority(NotificationCompat.PRIORITY_HIGH) .setAutoCancel(true) // cancel notification when user acts on it (Important: only applies to default notification area, not additional actions) - .addAction(R.drawable.ic_videocam_24dp, "", PendingIntent.getService(getApplicationContext(), 0, serviceIntentVideo, PendingIntent.FLAG_UPDATE_CURRENT)) - .addAction(R.drawable.ic_call_24dp, "", PendingIntent.getService(getApplicationContext(), 0, serviceIntentAudio, PendingIntent.FLAG_UPDATE_CURRENT)) - .addAction(R.drawable.ic_call_end_24dp, "", PendingIntent.getService(getApplicationContext(), 0, serviceIntentDecline, PendingIntent.FLAG_UPDATE_CURRENT)) + .addAction(R.drawable.ic_videocam_24dp, "Video", PendingIntent.getService(getApplicationContext(), 0, serviceIntentVideo, PendingIntent.FLAG_UPDATE_CURRENT)) + .addAction(R.drawable.ic_call_24dp, "Audio", PendingIntent.getService(getApplicationContext(), 0, serviceIntentAudio, PendingIntent.FLAG_UPDATE_CURRENT)) + .addAction(R.drawable.ic_call_end_24dp, "Hang Up", PendingIntent.getService(getApplicationContext(), 0, serviceIntentDecline, PendingIntent.FLAG_UPDATE_CURRENT)) .setVibrate(notificationVibrationPattern) .setLights(notificationColor, notificationColorPattern[0], notificationColorPattern[1]) .setContentIntent(PendingIntent.getService(getApplicationContext(), 0, serviceIntentDefault, PendingIntent.FLAG_UPDATE_CURRENT)) diff --git a/restcomm.android.sdk/src/main/res/drawable/ic_call_24dp.xml b/restcomm.android.sdk/src/main/res/drawable/ic_call_24dp.xml index ebf9de60..28914c6f 100644 --- a/restcomm.android.sdk/src/main/res/drawable/ic_call_24dp.xml +++ b/restcomm.android.sdk/src/main/res/drawable/ic_call_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/restcomm.android.sdk/src/main/res/drawable/ic_call_end_24dp.xml b/restcomm.android.sdk/src/main/res/drawable/ic_call_end_24dp.xml index f83a5349..aa4191ab 100644 --- a/restcomm.android.sdk/src/main/res/drawable/ic_call_end_24dp.xml +++ b/restcomm.android.sdk/src/main/res/drawable/ic_call_end_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/restcomm.android.sdk/src/main/res/drawable/ic_chat_24dp.xml b/restcomm.android.sdk/src/main/res/drawable/ic_chat_24dp.xml index e3489bde..bf19837b 100644 --- a/restcomm.android.sdk/src/main/res/drawable/ic_chat_24dp.xml +++ b/restcomm.android.sdk/src/main/res/drawable/ic_chat_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/restcomm.android.sdk/src/main/res/drawable/ic_mic_24dp.xml b/restcomm.android.sdk/src/main/res/drawable/ic_mic_24dp.xml index 4f0dc044..c0633e87 100644 --- a/restcomm.android.sdk/src/main/res/drawable/ic_mic_24dp.xml +++ b/restcomm.android.sdk/src/main/res/drawable/ic_mic_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/restcomm.android.sdk/src/main/res/drawable/ic_mic_off_24dp.xml b/restcomm.android.sdk/src/main/res/drawable/ic_mic_off_24dp.xml index 7b1759b3..0891fb32 100644 --- a/restcomm.android.sdk/src/main/res/drawable/ic_mic_off_24dp.xml +++ b/restcomm.android.sdk/src/main/res/drawable/ic_mic_off_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/restcomm.android.sdk/src/main/res/drawable/ic_phone_in_talk_24dp.xml b/restcomm.android.sdk/src/main/res/drawable/ic_phone_in_talk_24dp.xml index b48b9ede..5aa74907 100644 --- a/restcomm.android.sdk/src/main/res/drawable/ic_phone_in_talk_24dp.xml +++ b/restcomm.android.sdk/src/main/res/drawable/ic_phone_in_talk_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/restcomm.android.sdk/src/main/res/drawable/ic_phone_missed_24dp.xml b/restcomm.android.sdk/src/main/res/drawable/ic_phone_missed_24dp.xml index b2338317..ae5765d8 100644 --- a/restcomm.android.sdk/src/main/res/drawable/ic_phone_missed_24dp.xml +++ b/restcomm.android.sdk/src/main/res/drawable/ic_phone_missed_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/restcomm.android.sdk/src/main/res/drawable/ic_videocam_24dp.xml b/restcomm.android.sdk/src/main/res/drawable/ic_videocam_24dp.xml index e23eac81..4f58f22a 100644 --- a/restcomm.android.sdk/src/main/res/drawable/ic_videocam_24dp.xml +++ b/restcomm.android.sdk/src/main/res/drawable/ic_videocam_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0">