Пройдите, чтобы обновить Android
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
Mushy Meerkat
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
if(isRefreshing()){
handler.postDelayed(this, 1000);
}else{
swipeLayout.setRefreshing(false);
mainActivity.forceUpdate();
setLayout();
}