mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Tidy code
This commit is contained in:
parent
21686db31a
commit
b49a9974ae
1 changed files with 3 additions and 4 deletions
|
|
@ -122,17 +122,16 @@ public class CategorizationFragment extends Fragment {
|
|||
protected ArrayList<String> titleCatQuery() {
|
||||
ArrayList<String> items = new ArrayList<String>();
|
||||
|
||||
SharedPreferences titleDesc = PreferenceManager.getDefaultSharedPreferences(getActivity());
|
||||
//Retrieve the title that was saved when user tapped submit icon
|
||||
SharedPreferences titleDesc = PreferenceManager.getDefaultSharedPreferences(getActivity());
|
||||
String title = titleDesc.getString("Title", "");
|
||||
Log.d(TAG, "Title: " + title);
|
||||
|
||||
//TODO: Split this into AsyncTask
|
||||
|
||||
MWApi api = CommonsApplication.createMWApi();
|
||||
ApiResult result;
|
||||
|
||||
|
||||
//TODO: Split this into AsyncTask
|
||||
|
||||
//URL https://commons.wikimedia.org/w/api.php?action=query&format=xml&list=search&srwhat=text&srenablerewrites=1&srnamespace=14&srlimit=10&srsearch=
|
||||
try {
|
||||
result = api.action("query")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue