diff --git a/app/src/main/java/org/oppia/android/app/home/HomeActivityPresenter.kt b/app/src/main/java/org/oppia/android/app/home/HomeActivityPresenter.kt index 83e65950b7f..b008f06aadd 100644 --- a/app/src/main/java/org/oppia/android/app/home/HomeActivityPresenter.kt +++ b/app/src/main/java/org/oppia/android/app/home/HomeActivityPresenter.kt @@ -4,6 +4,7 @@ import android.view.View import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.widget.Toolbar import androidx.drawerlayout.widget.DrawerLayout +import androidx.recyclerview.widget.RecyclerView import org.oppia.android.R import org.oppia.android.app.activity.ActivityScope import org.oppia.android.app.drawer.NavigationDrawerFragment @@ -40,6 +41,10 @@ class HomeActivityPresenter @Inject constructor(private val activity: AppCompatA fun handleOnRestart() { setUpNavigationDrawer() + val view = activity.findViewById(R.id.home_recycler_view) as RecyclerView + for (i in 4..view.adapter!!.itemCount) { + view.adapter?.notifyItemChanged(i) + } } private fun setUpNavigationDrawer() {