Remove unnecessary try catch block

This commit is contained in:
misaochan 2016-10-21 17:05:11 +13:00
parent 5ba1d97704
commit a0042c7233

View file

@ -133,7 +133,7 @@ public class CategorizationFragment extends Fragment {
//TODO: Change to using onPostExecute instead //TODO: Change to using onPostExecute instead
//See http://stackoverflow.com/questions/10972114/how-to-get-a-string-back-from-asynctask //See http://stackoverflow.com/questions/10972114/how-to-get-a-string-back-from-asynctask
TitleCategories asyncTask = new TitleCategories(title); TitleCategories asyncTask = new TitleCategories(title);
try {
titleCategoriesSub = new TitleCategories(title) { titleCategoriesSub = new TitleCategories(title) {
@Override @Override
protected void onPostExecute(ArrayList<String> result) { protected void onPostExecute(ArrayList<String> result) {
@ -142,14 +142,8 @@ public class CategorizationFragment extends Fragment {
} }
}; };
Utils.executeAsyncTask(titleCategoriesSub); Utils.executeAsyncTask(titleCategoriesSub);
//items = asyncTask.execute().get(); return titleCatItems;
} catch (ExecutionException e) {
} catch (InterruptedException e) {
}
return items;
} }