From 924e9372a17e6639977daf0a055176968071b118 Mon Sep 17 00:00:00 2001 From: Jean Luis Urena Date: Mon, 27 Aug 2018 21:05:29 -0400 Subject: [PATCH] Release v 1.0 --- .../me/jlurena/ritscheduler/database/DataManager.java | 3 +-- .../homescreen/WidgetRemoteViewsFactory.java | 2 +- .../ritscheduler/networking/NetworkManager.java | 11 +++++------ .../jlurena/ritscheduler/networking/Serializers.java | 4 +--- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/ritscheduler/src/main/java/me/jlurena/ritscheduler/database/DataManager.java b/ritscheduler/src/main/java/me/jlurena/ritscheduler/database/DataManager.java index b7bd87a..545225c 100644 --- a/ritscheduler/src/main/java/me/jlurena/ritscheduler/database/DataManager.java +++ b/ritscheduler/src/main/java/me/jlurena/ritscheduler/database/DataManager.java @@ -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; @@ -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); } } diff --git a/ritscheduler/src/main/java/me/jlurena/ritscheduler/homescreen/WidgetRemoteViewsFactory.java b/ritscheduler/src/main/java/me/jlurena/ritscheduler/homescreen/WidgetRemoteViewsFactory.java index a0aaaeb..ac68e93 100644 --- a/ritscheduler/src/main/java/me/jlurena/ritscheduler/homescreen/WidgetRemoteViewsFactory.java +++ b/ritscheduler/src/main/java/me/jlurena/ritscheduler/homescreen/WidgetRemoteViewsFactory.java @@ -38,10 +38,10 @@ public class WidgetRemoteViewsFactory extends BroadcastReceiver implements Remot private final Context context; private final DataManager dataManager; private final HashSet courses; + private final SettingsManager settings; private WeekView weekView; private Calendar currentDay; private int width; - private final SettingsManager settings; WidgetRemoteViewsFactory(Context context) { this.context = context; diff --git a/ritscheduler/src/main/java/me/jlurena/ritscheduler/networking/NetworkManager.java b/ritscheduler/src/main/java/me/jlurena/ritscheduler/networking/NetworkManager.java index 1e05355..f00ea76 100644 --- a/ritscheduler/src/main/java/me/jlurena/ritscheduler/networking/NetworkManager.java +++ b/ritscheduler/src/main/java/me/jlurena/ritscheduler/networking/NetworkManager.java @@ -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; @@ -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; @@ -97,10 +96,10 @@ public void queryAutoComplete(String query, final ResponseListener> 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); }); @@ -129,10 +128,10 @@ public void queryCourses(String query, String term, final ResponseListener { - Log.e(TAG, error.getMessage()); + // Log.e(TAG, error.getMessage()); int status = error.networkResponse == null ? 500 : error.networkResponse.statusCode; responseListener.getResult(null, status, error); }); diff --git a/ritscheduler/src/main/java/me/jlurena/ritscheduler/networking/Serializers.java b/ritscheduler/src/main/java/me/jlurena/ritscheduler/networking/Serializers.java index 95515b3..645e52b 100644 --- a/ritscheduler/src/main/java/me/jlurena/ritscheduler/networking/Serializers.java +++ b/ritscheduler/src/main/java/me/jlurena/ritscheduler/networking/Serializers.java @@ -1,7 +1,5 @@ package me.jlurena.ritscheduler.networking; -import android.util.Log; - import com.fasterxml.jackson.databind.ObjectMapper; import org.json.JSONArray; @@ -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; }