mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add final var titleCatItems to allow inner class access
This commit is contained in:
parent
287fd98abb
commit
5ba1d97704
1 changed files with 3 additions and 2 deletions
|
|
@ -76,6 +76,7 @@ public class CategorizationFragment extends Fragment {
|
||||||
|
|
||||||
// LHS guarantees ordered insertions, allowing for prioritized method A results
|
// LHS guarantees ordered insertions, allowing for prioritized method A results
|
||||||
private final Set<String> results = new LinkedHashSet<String>();
|
private final Set<String> results = new LinkedHashSet<String>();
|
||||||
|
private final ArrayList<String> titleCatItems = new ArrayList<String>();
|
||||||
PrefixUpdater prefixUpdaterSub;
|
PrefixUpdater prefixUpdaterSub;
|
||||||
MethodAUpdater methodAUpdaterSub;
|
MethodAUpdater methodAUpdaterSub;
|
||||||
|
|
||||||
|
|
@ -121,7 +122,7 @@ public class CategorizationFragment extends Fragment {
|
||||||
//TODO: Probably add 'suggest from filename' cats here. We want it to be displayed at start, not upon typing
|
//TODO: Probably add 'suggest from filename' cats here. We want it to be displayed at start, not upon typing
|
||||||
//TODO: Search using MethodA query, but can't use MethodAUpdater because we don't want it updating when user types
|
//TODO: Search using MethodA query, but can't use MethodAUpdater because we don't want it updating when user types
|
||||||
protected ArrayList<String> titleCatQuery() {
|
protected ArrayList<String> titleCatQuery() {
|
||||||
ArrayList<String> items = new ArrayList<String>();
|
|
||||||
TitleCategories titleCategoriesSub;
|
TitleCategories titleCategoriesSub;
|
||||||
|
|
||||||
//Retrieve the title that was saved when user tapped submit icon
|
//Retrieve the title that was saved when user tapped submit icon
|
||||||
|
|
@ -137,7 +138,7 @@ public class CategorizationFragment extends Fragment {
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(ArrayList<String> result) {
|
protected void onPostExecute(ArrayList<String> result) {
|
||||||
super.onPostExecute(result);
|
super.onPostExecute(result);
|
||||||
|
titleCatItems.addAll(result);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Utils.executeAsyncTask(titleCategoriesSub);
|
Utils.executeAsyncTask(titleCategoriesSub);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue