mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-03 07:35:08 +00:00
Fixed java.lang.ClassCastException:
android.text.SpannableString cannot be cast to java.lang.String
This commit is contained in:
@@ -224,7 +224,7 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver.
|
|||||||
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
||||||
try {
|
try {
|
||||||
Bundle extras = notification.extras;
|
Bundle extras = notification.extras;
|
||||||
String extraTitle = extras.getString(TITLE_KEY);
|
String extraTitle = extras.getCharSequence(TITLE_KEY).toString();
|
||||||
String extraText = null;
|
String extraText = null;
|
||||||
Object extraTextExtra = extras.get(TEXT_KEY);
|
Object extraTextExtra = extras.get(TEXT_KEY);
|
||||||
if (extraTextExtra != null) extraText = extraTextExtra.toString();
|
if (extraTextExtra != null) extraText = extraTextExtra.toString();
|
||||||
|
Reference in New Issue
Block a user