diff options
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/card/activities/CardActivityViewHolder.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/card/activities/CardActivityViewHolder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/activities/CardActivityViewHolder.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/activities/CardActivityViewHolder.java index 6362f90dd..0678357d4 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/activities/CardActivityViewHolder.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/card/activities/CardActivityViewHolder.java @@ -26,7 +26,7 @@ public class CardActivityViewHolder extends RecyclerView.ViewHolder { } public void bind(@NonNull Activity activity, @NonNull MenuInflater inflater) { - final Context context = itemView.getContext(); + final var context = itemView.getContext(); binding.date.setText(DateUtil.getRelativeDateTimeString(context, activity.getLastModified().toEpochMilli())); binding.subject.setText(activity.getSubject()); itemView.setOnClickListener(View::showContextMenu); @@ -34,7 +34,7 @@ public class CardActivityViewHolder extends RecyclerView.ViewHolder { inflater.inflate(R.menu.activity_menu, menu); menu.findItem(android.R.id.copy).setOnMenuItemClickListener(item -> ClipboardUtil.INSTANCE.copyToClipboard(context, activity.getSubject())); }); - final ActivityType type = ActivityType.findById(activity.getType()); + final var type = ActivityType.findById(activity.getType()); setImageResource(binding.type, type); setImageColor(context, binding.type, type); } |