Skip to content

Commit

Permalink
Release v 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Luis Urena committed Aug 28, 2018
1 parent dc5b3cc commit 924e937
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package me.jlurena.ritscheduler.database;

import android.content.Context;
import android.util.Log;

import com.couchbase.lite.CouchbaseLiteException;
import com.couchbase.lite.DataSource;
Expand Down Expand Up @@ -46,7 +45,7 @@ private DataManager(Context context) {
try {
this.database = new Database(DB_NAME, config);
} catch (CouchbaseLiteException e) {
Log.e(TAG, "Could not create database", e);
// Log.e(TAG, "Could not create database", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public class WidgetRemoteViewsFactory extends BroadcastReceiver implements Remot
private final Context context;
private final DataManager dataManager;
private final HashSet<Course> courses;
private final SettingsManager settings;
private WeekView weekView;
private Calendar currentDay;
private int width;
private final SettingsManager settings;

WidgetRemoteViewsFactory(Context context) {
this.context = context;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package me.jlurena.ritscheduler.networking;

import android.content.Context;
import android.util.Log;

import com.android.volley.Request;
import com.android.volley.RequestQueue;
Expand Down Expand Up @@ -49,7 +48,7 @@ private String buildUrl(String queryUrl, String parameters) {
try {
url = queryUrl + URLEncoder.encode(parameters, "utf-8");
} catch (UnsupportedEncodingException e) {
Log.e(TAG, "Error building URL", e);
// Log.e(TAG, "Error building URL", e);
}

return url;
Expand Down Expand Up @@ -97,10 +96,10 @@ public void queryAutoComplete(String query, final ResponseListener<List<String>>
try {
responseListener.getResult(Serializers.toAutoCompleteList(response), 200, null);
} catch (JSONException e) {
Log.e(TAG, "Error parsing response", e);
// Log.e(TAG, "Error parsing response", e);
}
}, error -> {
Log.e(TAG, error.getMessage());
// Log.e(TAG, error.getMessage());
int status = error.networkResponse == null ? 500 : error.networkResponse.statusCode;
responseListener.getResult(null, status, error);
});
Expand Down Expand Up @@ -129,10 +128,10 @@ public void queryCourses(String query, String term, final ResponseListener<List<
try {
responseListener.getResult(Serializers.toCourseResults(response), 200, null);
} catch (JSONException | IOException e) {
Log.e(TAG, "Error parsing response", e);
// Log.e(TAG, "Error parsing response", e);
}
}, error -> {
Log.e(TAG, error.getMessage());
// Log.e(TAG, error.getMessage());
int status = error.networkResponse == null ? 500 : error.networkResponse.statusCode;
responseListener.getResult(null, status, error);
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package me.jlurena.ritscheduler.networking;

import android.util.Log;

import com.fasterxml.jackson.databind.ObjectMapper;

import org.json.JSONArray;
Expand Down Expand Up @@ -46,7 +44,7 @@ static JSONObject buildCourseQueryParameter(String query, String term) {
json.put("term", term);
json.put("career", career);
} catch (JSONException e) {
Log.e("Serializers", "Error creating JSON", e);
// Log.e("Serializers", "Error creating JSON", e);
}
return json;
}
Expand Down

0 comments on commit 924e937

Please sign in to comment.