[app] Fix a crash (#716)

This commit is contained in:
tehcneko 2021-06-01 11:33:11 +08:00 committed by GitHub
parent 7e23bcbda0
commit 0f14599222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ public class ScopeAdapter extends RecyclerView.Adapter<ScopeAdapter.ViewHolder>
@Override
public void run() {
synchronized (this) {
if (fragment == null || fragment.binding == null) {
return;
}
fragment.binding.progress.setIndeterminate(false);
fragment.binding.swipeRefreshLayout.setRefreshing(false);
String queryStr = fragment.searchView != null ? fragment.searchView.getQuery().toString() : "";