Skip to content
Snippets Groups Projects
Commit cece8655 authored by Matyáš Latner's avatar Matyáš Latner
Browse files

#14 Refactor: Zip loader AsyncTask return type set to VOID

parent 0ccda5bf
Branches
Tags
No related merge requests found
......@@ -24,13 +24,13 @@ import cz.nic.tablexia.loader.TablexiaDataManager;
* @author Matyáš Latner
*
*/
public class ZipAssetLoader extends TablexiaDataManager<I18NBundle> implements IApplicationLoader {
public class ZipAssetLoader extends TablexiaDataManager<Void> implements IApplicationLoader {
public static final TablexiaAssetManager.StorageType ZIP_FILES_STORAGE_TYPE = TablexiaAssetManager.StorageType.INTERNAL;
public static final String ZIP_FILE_EXTENSION = ".zip";
public static final String COMMON_ZIP_FILE_NAME = "common";
private static class ZipAssetLoaderTask implements AsyncTask<I18NBundle> {
private static class ZipAssetLoaderTask implements AsyncTask<Void> {
private Locale locale;
......@@ -39,7 +39,7 @@ public class ZipAssetLoader extends TablexiaDataManager<I18NBundle> implements I
}
@Override
public I18NBundle call() throws Exception {
public Void call() throws Exception {
String commonZipFile = COMMON_ZIP_FILE_NAME + ZIP_FILE_EXTENSION;
String localisedZipFile = locale.getLanguage() + ZIP_FILE_EXTENSION;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment