Skip to content

Commit

Permalink
rename zoomx interceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
iabdelgawaad committed May 29, 2019
1 parent 31da2fc commit dd74b4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.zoomx.example.retrofit;

import android.content.Context;
import com.zoomx.zoomx.networklogger.NetworkLogInterceptor;
import com.zoomx.zoomx.networklogger.ZoomXLoggerInterceptor;
import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
Expand All @@ -25,7 +25,7 @@ public NetworkManager(Context context) {
private void initRetrofit() {
OkHttpClient.Builder httpClient = new OkHttpClient
.Builder()
.addInterceptor(new NetworkLogInterceptor(this.context));
.addInterceptor(new ZoomXLoggerInterceptor(this.context));

retrofit = new Retrofit.Builder()
.baseUrl("https://api.github.com/")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
* Created by Ahmed Fathallah on 11/19/2017.
*/

public class NetworkLogInterceptor implements Interceptor {
public class ZoomXLoggerInterceptor implements Interceptor {

private static final Charset UTF_8 = Charset.forName("utf-8");
private Context context;

public NetworkLogInterceptor(Context context) {
public ZoomXLoggerInterceptor(Context context) {
this.context = context;
checkDrawOverAppsOption(context);
}
Expand Down

0 comments on commit dd74b4b

Please sign in to comment.