[app] Fix CalledFromWrongThreadException (#796)

This commit is contained in:
LoveSy 2021-07-01 14:34:34 +08:00 committed by GitHub
parent d5fb3b9e5b
commit 1fd4065186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ public class ModulesFragment extends BaseFragment implements ModuleUtil.ModuleLi
String pkgName = module.getName();
latestVersion.put(pkgName, new Pair<>(verCode, verName));
}
adapters.forEach(ModuleAdapter::notifyDataSetChanged);
requireActivity().runOnUiThread(() -> adapters.forEach(ModuleAdapter::notifyDataSetChanged));
}
public static class ModuleListFragment extends Fragment {