Skip to content

Commit

Permalink
Tweaked logging
Browse files Browse the repository at this point in the history
  • Loading branch information
HiiYL committed Apr 27, 2015
1 parent bc03365 commit 2c7b000
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 60 deletions.
120 changes: 64 additions & 56 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified app/.DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions app/src/main/java/com/github/hiiyl/mmuhub/MMLSFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class MMLSFragment extends Fragment {
private Cursor cursor;
private MMUDbHelper mOpenHelper;
private RequestQueue requestQueue;
private static int mReceivedCount = 0;
private int mReceivedCount = 0;
String slide_str;
/**
* The fragment argument representing the section number for this
Expand Down Expand Up @@ -90,14 +90,14 @@ public void onStop() {
// This method will be called when a MessageEvent is posted
public void onEventMainThread(SyncEvent event){
if(event.message.equals(Utility.SYNC_FINISHED)) {
mReceivedCount++;
Log.d("RECEIVED COUNT", Integer.toString(mReceivedCount));
Log.d("SYNC COMPLETE", "COMPLETE");
SnackBar sync_notify = new SnackBar(getActivity(), "Sync Complete");
sync_notify.show();
mSwipeRefreshLayout.setRefreshing(false);
cursor = MySingleton.getInstance(getActivity()).getDatabase().query(MMUContract.WeekEntry.TABLE_NAME, null, "subject_id = ?", new String[]{slide_str}, null, null, null);
cursor = MySingleton.getInstance(getActivity()).getDatabase().
query(MMUContract.WeekEntry.TABLE_NAME, null, "subject_id = ?", new String[]{slide_str}, null, null, null);
mAdapter.changeCursor(cursor);
mExListView.expandGroup(0);
EventBus.getDefault().removeStickyEvent(event);
}else if(event.message.equals(Utility.SYNC_BEGIN)) {
Log.d("SYNC STARTING", "NOTIFICATINO RECEIVED");
Expand Down

0 comments on commit 2c7b000

Please sign in to comment.