From 59a2504220d8103d4f04aa9fd2ec32f2d13981b1 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sat, 9 Jul 2016 19:21:34 +0300 Subject: [PATCH] Explore works - Need filtering --- .../matan/ara/sagi/thesocialnotework/ExploreFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/ExploreFragment.java b/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/ExploreFragment.java index 8be26f9..71b0287 100644 --- a/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/ExploreFragment.java +++ b/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/ExploreFragment.java @@ -66,6 +66,7 @@ public class ExploreFragment extends Fragment { 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"); String url = Utils.BASE_URL + "/note/getPublic"; JSONObject payload = new JSONObject(); @@ -89,6 +90,7 @@ public class ExploreFragment extends Fragment { notes.add(Utils.getNoteFromJsonObj(noteObject, time)); } list_notes.setAdapter(noteListAdapter); + Utils.dismissLoadingDialog(); } catch (Exception e) { Log.e(TAG, "newNoteSuccess:" + e.getMessage()); }