mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Remove unnecessary try catch block
This commit is contained in:
parent
5ba1d97704
commit
a0042c7233
1 changed files with 3 additions and 9 deletions
|
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue