Loading android/app/src/com/android/bluetooth/opp/BluetoothOppNotification.java +8 −0 Original line number Diff line number Diff line Loading @@ -314,6 +314,8 @@ class BluetoothOppNotification { // Build the notification object // TODO: split description into two rows with filename in second row Notification.Builder b = new Notification.Builder(mContext); b.setColor(mContext.getResources().getColor( com.android.internal.R.color.system_notification_accent_color)); b.setContentTitle(item.description); b.setContentInfo( BluetoothOppUtility.formatProgressText(item.totalTotal, item.totalCurrent)); Loading Loading @@ -403,6 +405,8 @@ class BluetoothOppNotification { outboundFailNumber); intent = new Intent(Constants.ACTION_OPEN_OUTBOUND_TRANSFER); intent.setClassName(Constants.THIS_PACKAGE_NAME, BluetoothOppReceiver.class.getName()); outNoti.color = mContext.getResources().getColor( com.android.internal.R.color.system_notification_accent_color); outNoti.setLatestEventInfo(mContext, title, caption, PendingIntent.getBroadcast( mContext, 0, intent, 0)); intent = new Intent(Constants.ACTION_COMPLETE_HIDE); Loading Loading @@ -450,6 +454,8 @@ class BluetoothOppNotification { inboundFailNumber); intent = new Intent(Constants.ACTION_OPEN_INBOUND_TRANSFER); intent.setClassName(Constants.THIS_PACKAGE_NAME, BluetoothOppReceiver.class.getName()); inNoti.color = mContext.getResources().getColor( com.android.internal.R.color.system_notification_accent_color); inNoti.setLatestEventInfo(mContext, title, caption, PendingIntent.getBroadcast( mContext, 0, intent, 0)); intent = new Intent(Constants.ACTION_COMPLETE_HIDE); Loading Loading @@ -494,6 +500,8 @@ class BluetoothOppNotification { intent.setDataAndNormalize(contentUri); n.when = timeStamp; n.color = mContext.getResources().getColor( com.android.internal.R.color.system_notification_accent_color); n.setLatestEventInfo(mContext, title, caption, PendingIntent.getBroadcast(mContext, 0, intent, 0)); Loading android/app/src/com/android/bluetooth/pbap/BluetoothPbapService.java +2 −0 Original line number Diff line number Diff line Loading @@ -765,6 +765,8 @@ public class BluetoothPbapService extends Service { deleteIntent.setAction(AUTH_CANCELLED_ACTION); notification = new Notification(android.R.drawable.stat_sys_data_bluetooth, getString(R.string.auth_notif_ticker), System.currentTimeMillis()); notification.color = getResources().getColor( com.android.internal.R.color.system_notification_accent_color); notification.setLatestEventInfo(this, getString(R.string.auth_notif_title), getString(R.string.auth_notif_message, name), PendingIntent .getActivity(this, 0, clickIntent, 0)); Loading Loading
android/app/src/com/android/bluetooth/opp/BluetoothOppNotification.java +8 −0 Original line number Diff line number Diff line Loading @@ -314,6 +314,8 @@ class BluetoothOppNotification { // Build the notification object // TODO: split description into two rows with filename in second row Notification.Builder b = new Notification.Builder(mContext); b.setColor(mContext.getResources().getColor( com.android.internal.R.color.system_notification_accent_color)); b.setContentTitle(item.description); b.setContentInfo( BluetoothOppUtility.formatProgressText(item.totalTotal, item.totalCurrent)); Loading Loading @@ -403,6 +405,8 @@ class BluetoothOppNotification { outboundFailNumber); intent = new Intent(Constants.ACTION_OPEN_OUTBOUND_TRANSFER); intent.setClassName(Constants.THIS_PACKAGE_NAME, BluetoothOppReceiver.class.getName()); outNoti.color = mContext.getResources().getColor( com.android.internal.R.color.system_notification_accent_color); outNoti.setLatestEventInfo(mContext, title, caption, PendingIntent.getBroadcast( mContext, 0, intent, 0)); intent = new Intent(Constants.ACTION_COMPLETE_HIDE); Loading Loading @@ -450,6 +454,8 @@ class BluetoothOppNotification { inboundFailNumber); intent = new Intent(Constants.ACTION_OPEN_INBOUND_TRANSFER); intent.setClassName(Constants.THIS_PACKAGE_NAME, BluetoothOppReceiver.class.getName()); inNoti.color = mContext.getResources().getColor( com.android.internal.R.color.system_notification_accent_color); inNoti.setLatestEventInfo(mContext, title, caption, PendingIntent.getBroadcast( mContext, 0, intent, 0)); intent = new Intent(Constants.ACTION_COMPLETE_HIDE); Loading Loading @@ -494,6 +500,8 @@ class BluetoothOppNotification { intent.setDataAndNormalize(contentUri); n.when = timeStamp; n.color = mContext.getResources().getColor( com.android.internal.R.color.system_notification_accent_color); n.setLatestEventInfo(mContext, title, caption, PendingIntent.getBroadcast(mContext, 0, intent, 0)); Loading
android/app/src/com/android/bluetooth/pbap/BluetoothPbapService.java +2 −0 Original line number Diff line number Diff line Loading @@ -765,6 +765,8 @@ public class BluetoothPbapService extends Service { deleteIntent.setAction(AUTH_CANCELLED_ACTION); notification = new Notification(android.R.drawable.stat_sys_data_bluetooth, getString(R.string.auth_notif_ticker), System.currentTimeMillis()); notification.color = getResources().getColor( com.android.internal.R.color.system_notification_accent_color); notification.setLatestEventInfo(this, getString(R.string.auth_notif_title), getString(R.string.auth_notif_message, name), PendingIntent .getActivity(this, 0, clickIntent, 0)); Loading