Skip to content

Commit a68e959

Browse files
committed
解决4.2机型打开崩溃问题
1 parent 15e8c7b commit a68e959

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/src/main/res/layout/fm_kb_list.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<android.support.v7.widget.Toolbar
1111
android:id="@+id/tool_bar"
1212
android:layout_width="match_parent"
13-
android:layout_height="@dimen/action_bar_height"
13+
android:layout_height="42dp"
1414
android:background="@drawable/public_divider_while_primary">
1515

1616
<TextView
@@ -22,7 +22,7 @@
2222
android:src="@drawable/ic_action_bar_logo"
2323
android:text="@string/app_name"
2424
android:textColor="@color/ph1"
25-
android:textSize="20sp"/>
25+
android:textSize="18sp"/>
2626

2727
</android.support.v7.widget.Toolbar>
2828

sdk/src/main/java/com/rae/cnblogs/sdk/interceptor/RequestInterceptor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import android.net.NetworkInfo;
66
import android.text.TextUtils;
77
import android.webkit.CookieManager;
8+
import android.webkit.CookieSyncManager;
89

910
import com.rae.cnblogs.sdk.JsonBody;
1011

@@ -37,6 +38,7 @@ public static RequestInterceptor create(Context context) {
3738

3839
public RequestInterceptor(Context context) {
3940
mConnectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
41+
CookieSyncManager.createInstance(context.getApplicationContext());
4042
}
4143

4244
private boolean isConnected() {

0 commit comments

Comments
 (0)