Skip to content

Commit

Permalink
proposal of a fix oppia#5150, update recycler view
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaevg committed Sep 24, 2023
1 parent 89e8032 commit 961cf00
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -40,6 +41,10 @@ class HomeActivityPresenter @Inject constructor(private val activity: AppCompatA

fun handleOnRestart() {
setUpNavigationDrawer()
val view = activity.findViewById<View>(R.id.home_recycler_view) as RecyclerView
for (i in 4..view.adapter!!.itemCount) {
view.adapter?.notifyItemChanged(i)
}
}

private fun setUpNavigationDrawer() {
Expand Down

0 comments on commit 961cf00

Please sign in to comment.