[app] Fix CalledFromWrongThreadException (#796)
This commit is contained in:
parent
d5fb3b9e5b
commit
1fd4065186
|
|
@ -363,7 +363,7 @@ public class ModulesFragment extends BaseFragment implements ModuleUtil.ModuleLi
|
||||||
String pkgName = module.getName();
|
String pkgName = module.getName();
|
||||||
latestVersion.put(pkgName, new Pair<>(verCode, verName));
|
latestVersion.put(pkgName, new Pair<>(verCode, verName));
|
||||||
}
|
}
|
||||||
adapters.forEach(ModuleAdapter::notifyDataSetChanged);
|
requireActivity().runOnUiThread(() -> adapters.forEach(ModuleAdapter::notifyDataSetChanged));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class ModuleListFragment extends Fragment {
|
public static class ModuleListFragment extends Fragment {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue