File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
sdk/src/main/java/com/rae/cnblogs/sdk/interceptor Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 10
10
<android .support.v7.widget.Toolbar
11
11
android : id =" @+id/tool_bar"
12
12
android : layout_width =" match_parent"
13
- android : layout_height =" @dimen/action_bar_height "
13
+ android : layout_height =" 42dp "
14
14
android : background =" @drawable/public_divider_while_primary" >
15
15
16
16
<TextView
22
22
android : src =" @drawable/ic_action_bar_logo"
23
23
android : text =" @string/app_name"
24
24
android : textColor =" @color/ph1"
25
- android : textSize =" 20sp " />
25
+ android : textSize =" 18sp " />
26
26
27
27
</android .support.v7.widget.Toolbar>
28
28
Original file line number Diff line number Diff line change 5
5
import android .net .NetworkInfo ;
6
6
import android .text .TextUtils ;
7
7
import android .webkit .CookieManager ;
8
+ import android .webkit .CookieSyncManager ;
8
9
9
10
import com .rae .cnblogs .sdk .JsonBody ;
10
11
@@ -37,6 +38,7 @@ public static RequestInterceptor create(Context context) {
37
38
38
39
public RequestInterceptor (Context context ) {
39
40
mConnectivityManager = (ConnectivityManager ) context .getSystemService (Context .CONNECTIVITY_SERVICE );
41
+ CookieSyncManager .createInstance (context .getApplicationContext ());
40
42
}
41
43
42
44
private boolean isConnected () {
You can’t perform that action at this time.
0 commit comments