Explore works - Need filtering

This commit is contained in:
Sagi Dayan 2016-07-09 19:21:34 +03:00
parent 2eff535e7e
commit 59a2504220

View file

@ -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());
} }