mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-27 12:39:04 +00:00
Clean
This commit is contained in:
@@ -99,8 +99,8 @@ public class MarkReadReceiver extends BroadcastReceiver {
|
||||
for (String device : linkedDevices) {
|
||||
Address deviceAsAddress = Address.fromExternal(context, device);
|
||||
ApplicationContext.getInstance(context)
|
||||
.getJobManager()
|
||||
.add(new SendReadReceiptJob(deviceAsAddress, timestamps));
|
||||
.getJobManager()
|
||||
.add(new SendReadReceiptJob(deviceAsAddress, timestamps));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -332,8 +332,8 @@ public class MessageNotifier {
|
||||
|
||||
if (canReply) {
|
||||
builder.addAndroidAutoAction(notificationState.getAndroidAutoReplyIntent(context, recipient),
|
||||
notificationState.getAndroidAutoHeardIntent(context, notificationId),
|
||||
notifications.get(0).getTimestamp());
|
||||
notificationState.getAndroidAutoHeardIntent(context, notificationId),
|
||||
notifications.get(0).getTimestamp());
|
||||
}
|
||||
|
||||
ListIterator<NotificationItem> iterator = notifications.listIterator(notifications.size());
|
||||
|
||||
@@ -247,10 +247,8 @@ public class SingleRecipientNotificationBuilder extends AbstractNotificationBuil
|
||||
}
|
||||
|
||||
private Bitmap getCircularBitmap(Bitmap bitmap) {
|
||||
final Bitmap output = Bitmap.createBitmap(bitmap.getWidth(),
|
||||
bitmap.getHeight(), Bitmap.Config.ARGB_8888);
|
||||
final Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);
|
||||
final Canvas canvas = new Canvas(output);
|
||||
|
||||
final int color = Color.RED;
|
||||
final Paint paint = new Paint();
|
||||
final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());
|
||||
@@ -260,7 +258,6 @@ public class SingleRecipientNotificationBuilder extends AbstractNotificationBuil
|
||||
canvas.drawARGB(0, 0, 0, 0);
|
||||
paint.setColor(color);
|
||||
canvas.drawOval(rectF, paint);
|
||||
|
||||
paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));
|
||||
canvas.drawBitmap(bitmap, rect, rect, paint);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user