|
|
|
@ -29,8 +29,8 @@ import java.util.List;
|
|
|
|
|
|
|
|
|
|
import okhttp3.Headers;
|
|
|
|
|
|
|
|
|
|
public class MainActivity extends AppCompatActivity {
|
|
|
|
|
private static final String TAG = MainActivity.class.getSimpleName();
|
|
|
|
|
public class DemoActivity extends AppCompatActivity {
|
|
|
|
|
private static final String TAG = DemoActivity.class.getSimpleName();
|
|
|
|
|
ActivityMainBinding binding;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -71,7 +71,7 @@ public class MainActivity extends AppCompatActivity {
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
binding.clearBtn.setOnClickListener(l -> ImageLoader.INSTANCE.clearAllCache(MainActivity.this));
|
|
|
|
|
binding.clearBtn.setOnClickListener(l -> ImageLoader.INSTANCE.clearAllCache(DemoActivity.this));
|
|
|
|
|
|
|
|
|
|
binding.btn.setOnClickListener(l -> {
|
|
|
|
|
List<RequestHeadInterceptor> interceptors = new ArrayList<>();
|