使用OkHttpClient會出現重複請求問題
最終排查到日誌攔截器裏重複使用chain.proceed(request)導致
比如增加日誌攔截器
.addInterceptor(new VLogInterceptor())
該方法裏使用了一下方法
Response response = chain.proceed(request);
然後返回時候再次使用導致!
return chain.proceed(request);
更改如下解決:
return response ;
使用OkHttpClient會出現重複請求問題
最終排查到日誌攔截器裏重複使用chain.proceed(request)導致
比如增加日誌攔截器
.addInterceptor(new VLogInterceptor())
該方法裏使用了一下方法
Response response = chain.proceed(request);
然後返回時候再次使用導致!
return chain.proceed(request);
更改如下解決:
return response ;
ListView添加該屬性即可取消點擊效果 android:listSelector="@android:color/transparent"