mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Remove double declaration, indent lines
This commit is contained in:
parent
a0042c7233
commit
5254f7a808
1 changed files with 8 additions and 12 deletions
|
|
@ -130,19 +130,15 @@ public class CategorizationFragment extends Fragment {
|
||||||
String title = titleDesc.getString("Title", "");
|
String title = titleDesc.getString("Title", "");
|
||||||
Log.d(TAG, "Title: " + title);
|
Log.d(TAG, "Title: " + title);
|
||||||
|
|
||||||
//TODO: Change to using onPostExecute instead
|
titleCategoriesSub = new TitleCategories(title) {
|
||||||
//See http://stackoverflow.com/questions/10972114/how-to-get-a-string-back-from-asynctask
|
@Override
|
||||||
TitleCategories asyncTask = new TitleCategories(title);
|
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;
|
return titleCatItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue