Remove double declaration, indent lines

This commit is contained in:
misaochan 2016-10-21 17:06:01 +13:00
parent a0042c7233
commit 5254f7a808

View file

@ -130,19 +130,15 @@ public class CategorizationFragment extends Fragment {
String title = titleDesc.getString("Title", "");
Log.d(TAG, "Title: " + title);
//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);
titleCategoriesSub = new TitleCategories(title) {
@Override
protected void onPostExecute(ArrayList<String> result) {
super.onPostExecute(result);
titleCatItems.addAll(result);
}
};
Utils.executeAsyncTask(titleCategoriesSub);
titleCategoriesSub = new TitleCategories(title) {
@Override
protected void onPostExecute(ArrayList<String> result) {
super.onPostExecute(result);
titleCatItems.addAll(result);
}
};
Utils.executeAsyncTask(titleCategoriesSub);
return titleCatItems;
}