Loading src/com/android/server/telecom/ui/MissedCallNotifierImpl.java +11 −3 Original line number Diff line number Diff line Loading @@ -204,10 +204,12 @@ public class MissedCallNotifierImpl extends CallsManagerListenerBase implements mContext.getString(R.string.notification_missedCall_call_back), createCallBackPendingIntent(handleUri)); if (canRespondViaSms(call)) { builder.addAction(R.drawable.ic_message_24dp, mContext.getString(R.string.notification_missedCall_message), createSendSmsFromNotificationPendingIntent(handleUri)); } } Bitmap photoIcon = call.getPhotoIcon(); if (photoIcon != null) { Loading Loading @@ -366,6 +368,12 @@ public class MissedCallNotifierImpl extends CallsManagerListenerBase implements notification.defaults |= Notification.DEFAULT_LIGHTS; } private boolean canRespondViaSms(Call call) { // Only allow respond-via-sms for "tel:" calls. return call.getHandle() != null && PhoneAccount.SCHEME_TEL.equals(call.getHandle().getScheme()); } /** * Adds the missed call notification on startup if there are unread missed calls. */ Loading Loading
src/com/android/server/telecom/ui/MissedCallNotifierImpl.java +11 −3 Original line number Diff line number Diff line Loading @@ -204,10 +204,12 @@ public class MissedCallNotifierImpl extends CallsManagerListenerBase implements mContext.getString(R.string.notification_missedCall_call_back), createCallBackPendingIntent(handleUri)); if (canRespondViaSms(call)) { builder.addAction(R.drawable.ic_message_24dp, mContext.getString(R.string.notification_missedCall_message), createSendSmsFromNotificationPendingIntent(handleUri)); } } Bitmap photoIcon = call.getPhotoIcon(); if (photoIcon != null) { Loading Loading @@ -366,6 +368,12 @@ public class MissedCallNotifierImpl extends CallsManagerListenerBase implements notification.defaults |= Notification.DEFAULT_LIGHTS; } private boolean canRespondViaSms(Call call) { // Only allow respond-via-sms for "tel:" calls. return call.getHandle() != null && PhoneAccount.SCHEME_TEL.equals(call.getHandle().getScheme()); } /** * Adds the missed call notification on startup if there are unread missed calls. */ Loading