mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +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() {
|
protected ArrayList<String> titleCatQuery() {
|
||||||
ArrayList<String> items = new ArrayList<String>();
|
ArrayList<String> items = new ArrayList<String>();
|
||||||
|
|
||||||
SharedPreferences titleDesc = PreferenceManager.getDefaultSharedPreferences(getActivity());
|
|
||||||
//Retrieve the title that was saved when user tapped submit icon
|
//Retrieve the title that was saved when user tapped submit icon
|
||||||
|
SharedPreferences titleDesc = PreferenceManager.getDefaultSharedPreferences(getActivity());
|
||||||
String title = titleDesc.getString("Title", "");
|
String title = titleDesc.getString("Title", "");
|
||||||
Log.d(TAG, "Title: " + title);
|
Log.d(TAG, "Title: " + title);
|
||||||
|
|
||||||
|
//TODO: Split this into AsyncTask
|
||||||
|
|
||||||
MWApi api = CommonsApplication.createMWApi();
|
MWApi api = CommonsApplication.createMWApi();
|
||||||
ApiResult result;
|
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=
|
//URL https://commons.wikimedia.org/w/api.php?action=query&format=xml&list=search&srwhat=text&srenablerewrites=1&srnamespace=14&srlimit=10&srsearch=
|
||||||
try {
|
try {
|
||||||
result = api.action("query")
|
result = api.action("query")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue