This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/library/src/main/java/org/lucasr/twowayview/TWSpannableGridLayoutManager.java b/library/src/main/java/org/lucasr/twowayview/TWSpannableGridLayoutManager.java | |
index e631060..d6956ff 100644 | |
--- a/library/src/main/java/org/lucasr/twowayview/TWSpannableGridLayoutManager.java | |
+++ b/library/src/main/java/org/lucasr/twowayview/TWSpannableGridLayoutManager.java | |
@@ -218,6 +218,8 @@ public class TWSpannableGridLayoutManager extends TWGridLayoutManager { | |
int childCount = 0, i = 0; | |
while (i < itemCount && i < laneCount) { | |
SpannableItemEntry entry = (SpannableItemEntry) getItemEntryForPosition(i); | |
+ if (entry == null) | |
+ break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class MyHttpClient extends UrlConnectionClient { | |
SSLContext sslContext = null; | |
SSLSocketFactory sslSocketFactory = null; | |
private final OkHttpClient client; | |
static final int CONNECT_TIMEOUT_MILLIS = 15 * 1000; // 15s | |
static final int READ_TIMEOUT_MILLIS = 20 * 1000; // 20s | |
public MyHttpClient(Context context) { | |
client = generateDefaultOkHttp(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2013 Bo Wang | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
NewerOlder