From e3d672f395b2f1ecf73ade613f38ad5de9416bac Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 30 Aug 2019 11:53:22 +0800 Subject: Minor bugs fixed. Fixed circular progress bar background in UserListingFragment and SubredditListFragment. --- .../java/ml/docilealligator/infinityforreddit/ParseUserData.java | 8 ++++---- .../docilealligator/infinityforreddit/UserListingDataSource.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'app/src/main/java/ml') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/ParseUserData.java b/app/src/main/java/ml/docilealligator/infinityforreddit/ParseUserData.java index f52441b8..b332f90a 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/ParseUserData.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/ParseUserData.java @@ -43,7 +43,7 @@ public class ParseUserData { this.parseUserDataListener = parseUserDataListener; parseFailed = false; } catch (JSONException e) { - Log.i("userdata json error", e.getMessage()); + Log.i("userdata json error", "error: " + e.getMessage()); parseUserDataListener.onParseUserDataFailed(); } } @@ -54,7 +54,7 @@ public class ParseUserData { userData = parseUserDataBase(jsonResponse); } catch (JSONException e) { parseFailed = true; - Log.i("parse user data error", e.getMessage()); + Log.i("parse user data error", "error: " + e.getMessage()); } return null; } @@ -86,7 +86,7 @@ public class ParseUserData { parseFailed = false; userDataArrayList = new ArrayList<>(); } catch (JSONException e) { - Log.i("userdata json error", e.getMessage()); + Log.i("userdata json error", "error: " + e.getMessage()); parseFailed = true; } } @@ -103,7 +103,7 @@ public class ParseUserData { } } catch (JSONException e) { parseFailed = true; - Log.i("parse user data error", e.getMessage()); + Log.i("parse user data error", "error: " + e.getMessage()); } return null; } diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/UserListingDataSource.java b/app/src/main/java/ml/docilealligator/infinityforreddit/UserListingDataSource.java index 8d55746f..bcad2452 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/UserListingDataSource.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/UserListingDataSource.java @@ -78,7 +78,7 @@ public class UserListingDataSource extends PageKeyedDataSource this.params = params; this.callback = callback; - if(params.key.equals("null")) { + if(params.key.equals("null") || params.key.equals("")) { return; } -- cgit v1.2.3