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
|
||||
//See http://stackoverflow.com/questions/10972114/how-to-get-a-string-back-from-asynctask
|
||||
TitleCategories asyncTask = new TitleCategories(title);
|
||||
try {
|
||||
|
||||
titleCategoriesSub = new TitleCategories(title) {
|
||||
@Override
|
||||
protected void onPostExecute(ArrayList<String> result) {
|
||||
|
|
@ -143,13 +143,7 @@ public class CategorizationFragment extends Fragment {
|
|||
};
|
||||
Utils.executeAsyncTask(titleCategoriesSub);
|
||||
|
||||
//items = asyncTask.execute().get();
|
||||
} catch (ExecutionException e) {
|
||||
|
||||
} catch (InterruptedException e) {
|
||||
|
||||
}
|
||||
return items;
|
||||
return titleCatItems;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue