mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Attempt of a blind fix for mod load crash on Android launcher
This commit is contained in:
parent
041236837b
commit
8d5aff4c12
@ -182,9 +182,16 @@ public class ActivityMods extends ActivityWithToolbar
|
||||
public void onSuccess(ServerResponse<List<VCMIMod>> response)
|
||||
{
|
||||
Log.i(this, "Initialized mods repo");
|
||||
mModContainer.updateFromRepo(response.mContent);
|
||||
mModsAdapter.updateModsList(mModContainer.submods());
|
||||
mProgress.setVisibility(View.GONE);
|
||||
if (mModContainer == null)
|
||||
{
|
||||
handleNoData();
|
||||
}
|
||||
else
|
||||
{
|
||||
mModContainer.updateFromRepo(response.mContent);
|
||||
mModsAdapter.updateModsList(mModContainer.submods());
|
||||
mProgress.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user