diff --git a/app/build.gradle.kts b/app/build.gradle.kts index fe845f7..cd76ee1 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -41,6 +41,7 @@ dependencies { implementation(libs.fragment.ktx) implementation(libs.material) implementation(libs.drawerlayout) + implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0") testImplementation(libs.junit) } diff --git a/app/src/main/java/se/ajpanton/notificationlog/EventSettingsFragment.kt b/app/src/main/java/se/ajpanton/notificationlog/EventSettingsFragment.kt index 6204a52..217eee3 100644 --- a/app/src/main/java/se/ajpanton/notificationlog/EventSettingsFragment.kt +++ b/app/src/main/java/se/ajpanton/notificationlog/EventSettingsFragment.kt @@ -25,6 +25,7 @@ class EventSettingsFragment : Fragment(R.layout.fragment_event_settings) { store = LoggingRuleStore(requireContext()) binding!!.pageTitle.setText(requireArguments().getInt(ARG_TITLE)) bindRule() + binding!!.appListRefresh.setOnRefreshListener { reloadAppList(); binding!!.appListRefresh.isRefreshing = false } } override fun onDestroyView() { binding = null; super.onDestroyView() } diff --git a/app/src/main/res/layout/fragment_event_settings.xml b/app/src/main/res/layout/fragment_event_settings.xml index 00fe94a..fc60a95 100644 --- a/app/src/main/res/layout/fragment_event_settings.xml +++ b/app/src/main/res/layout/fragment_event_settings.xml @@ -1,5 +1,5 @@ - + @@ -9,4 +9,4 @@ - +