Explore works - Need filtering
This commit is contained in:
parent
2eff535e7e
commit
59a2504220
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,7 @@ public class ExploreFragment extends Fragment {
|
||||||
|
|
||||||
|
|
||||||
public void getAllNotes() throws JSONException {
|
public void getAllNotes() throws JSONException {
|
||||||
|
Utils.showLoadingDialog(parent, "Exploring...", "Finding some new interesting notes just for you");
|
||||||
Log.d(TAG, "url: " + Utils.BASE_URL + "/note/getPublic");
|
Log.d(TAG, "url: " + Utils.BASE_URL + "/note/getPublic");
|
||||||
String url = Utils.BASE_URL + "/note/getPublic";
|
String url = Utils.BASE_URL + "/note/getPublic";
|
||||||
JSONObject payload = new JSONObject();
|
JSONObject payload = new JSONObject();
|
||||||
|
@ -89,6 +90,7 @@ public class ExploreFragment extends Fragment {
|
||||||
notes.add(Utils.getNoteFromJsonObj(noteObject, time));
|
notes.add(Utils.getNoteFromJsonObj(noteObject, time));
|
||||||
}
|
}
|
||||||
list_notes.setAdapter(noteListAdapter);
|
list_notes.setAdapter(noteListAdapter);
|
||||||
|
Utils.dismissLoadingDialog();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.e(TAG, "newNoteSuccess:" + e.getMessage());
|
Log.e(TAG, "newNoteSuccess:" + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue