diff --git a/demo/src/main/java/com/google/android/fhir/demo/PatientItemRecyclerViewAdapter.kt b/demo/src/main/java/com/google/android/fhir/demo/PatientItemRecyclerViewAdapter.kt index c721a421b3..b6ecad82ab 100644 --- a/demo/src/main/java/com/google/android/fhir/demo/PatientItemRecyclerViewAdapter.kt +++ b/demo/src/main/java/com/google/android/fhir/demo/PatientItemRecyclerViewAdapter.kt @@ -1,5 +1,5 @@ /* - * Copyright 2021-2023 Google LLC + * Copyright 2021-2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,7 +37,11 @@ class PatientItemRecyclerViewAdapter( override fun areContentsTheSame( oldItem: PatientListViewModel.PatientItem, newItem: PatientListViewModel.PatientItem, - ): Boolean = oldItem.id == newItem.id && oldItem.risk == newItem.risk + ): Boolean = + oldItem.id == newItem.id && + oldItem.risk == newItem.risk && + oldItem.name == newItem.name && + oldItem.dob == newItem.dob } override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): PatientItemViewHolder {