reformat code

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-01-05 21:16:23 +01:00
parent ce861ee170
commit 620a008b34
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -141,7 +141,9 @@ public class NotificationListAdapter extends RecyclerView.Adapter<NotificationLi
downloadIcon(notification.getIcon(), holder.binding.icon);
}
int nightModeFlag = notificationsActivity.getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK;
int nightModeFlag =
notificationsActivity.getResources().getConfiguration().uiMode
& Configuration.UI_MODE_NIGHT_MASK;
if (Configuration.UI_MODE_NIGHT_YES == nightModeFlag) {
holder.binding.icon.setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_IN);
} else {
@ -150,7 +152,8 @@ public class NotificationListAdapter extends RecyclerView.Adapter<NotificationLi
setButtons(holder, notification);
holder.binding.dismiss.setOnClickListener(v -> new DeleteNotificationTask(client, notification,
holder.binding.dismiss.setOnClickListener(v -> new DeleteNotificationTask(client,
notification,
holder,
notificationsActivity).execute());
}