fix spinner by using enabled not refresh like on the original file

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-05-12 22:58:59 +02:00
parent 25528aded0
commit dc705ccf40
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -704,7 +704,7 @@ class ContactsController(args: Bundle) :
}
try {
binding.controllerGenericRv.swipeRefreshLayout.isRefreshing = !adapter!!.hasFilter()
binding.controllerGenericRv.swipeRefreshLayout.isEnabled = !adapter!!.hasFilter()
} catch (npe: NullPointerException) {
// view binding can be null
// since this is called asynchronously and UI might have been destroyed in the meantime