@Override protected void onPostExecute(Void blah) { BibleText bibleText = new SwordBibleText(bibleBook, chapter, verse, translation); SwordContentFacade.getInstance().injectChapterFromJsword(bibleText); ((MainActivity) getActivity()).updateBibleText(bibleText); // new SwordVerseTask().execute(new SwordBibleText(bibleBook, chapter, // translation)); }
@Override protected Void doInBackground(String... params) { bibleBook = params[0]; chapter = Integer.valueOf(params[1]); verse = Integer.valueOf(params[2]); translation = params[3]; // Initialise the Sword SwordContentFacade.getInstance(); return null; }
@Override protected BibleText doInBackground(BibleText... params) { BibleText bibleText = params[0]; SwordContentFacade.getInstance().injectChapterFromJsword(bibleText); return bibleText; }