Skip to content

Commit

Permalink
Lint error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yeriomin committed Jun 6, 2018
1 parent 88e7b91 commit 9d51cff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ protected byte[] request(HttpURLConnection connection, byte[] body, Map<String,
// This is a known bug in Android 7.0; it was fixed by this change which went into Android 7.1:
// https://android-review.googlesource.com/#/c/271775/
// https://github.com/square/okhttp/issues/3245
throw new IOException(e);
throw new IOException("This is a known bug in Android 7.0; it was fixed by this change which went into Android 7.1: " + e.getMessage());
}

int code = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void clearPendingUpdates() {

@Override
public void onCreate() {
if (BuildConfig.DEBUG) {
if (BuildConfig.DEBUG && Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectAll().permitDiskReads().penaltyLog().build());
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectAll().penaltyLog().build());
}
Expand Down

0 comments on commit 9d51cff

Please sign in to comment.