From 1d1322523492f3cc805d364ca9e3ef9a25b0fbad Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Thu, 22 Jun 2017 16:41:36 -0700 Subject: Refresh adapter on previous --- library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'library/src/main/kotlin/ca/allanwang') diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt b/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt index e4be59b..77bceaf 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt +++ b/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt @@ -131,6 +131,7 @@ abstract class KPrefActivity : AppCompatActivity(), KPrefActivityContract { outAnimation = if (animate) SLIDE_OUT_RIGHT_ITEMS else null showPrevious() removeView(current) + adapter.notifyAdapterDataSetChanged() } titleStack.pop() with(toolbarTitle) { -- cgit v1.2.3