File tree Expand file tree Collapse file tree 6 files changed +8
-10
lines changed Expand file tree Collapse file tree 6 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
2
package =" org.kymjs.kjframe"
3
- android : versionCode =" 223 "
4
- android : versionName =" 2.239 " >
3
+ android : versionCode =" 224 "
4
+ android : versionName =" 2.24 " >
5
5
6
6
<uses-sdk
7
7
android : minSdkVersion =" 11"
Original file line number Diff line number Diff line change @@ -42,10 +42,8 @@ public class BitmapConfig {
42
42
public static ImageCache mMemoryCache ;
43
43
44
44
public int cacheTime = 1440000 ;
45
-
46
- /** 已使用全新的DiskCache,不再需要prefix参数 */
47
- @ Deprecated
48
- public static String CACHE_FILENAME_PREFIX = "KJLibrary_" ;
45
+ // 为了防止网速很快的时候速度过快而造成先显示加载中图片,然后瞬间显示网络图片的闪烁问题
46
+ public long delayTime = 100 ;
49
47
50
48
public BitmapConfig () {
51
49
File folder = FileUtils .getSaveFolder (CACHEPATH );
Original file line number Diff line number Diff line change @@ -37,8 +37,7 @@ public class ImageDisplayer {
37
37
private final KJHttp mKJHttp ; // 使用KJHttp的线程池执行队列去加载图片
38
38
39
39
private final ImageCache mMemoryCache ; // 内存缓存器
40
- // 为了防止网速很快的时候速度过快而造成先显示加载中图片,然后瞬间显示网络图片的闪烁问题
41
- private final int mResponseDelayMs = 100 ;
40
+ private final long mResponseDelayMs ;
42
41
43
42
private Runnable mRunnable ;
44
43
private final Handler mHandler = new Handler (Looper .getMainLooper ());
@@ -64,6 +63,7 @@ public ImageDisplayer(BitmapConfig bitmapConfig) {
64
63
config .cacheTime = bitmapConfig .cacheTime ;
65
64
mKJHttp = new KJHttp (config );
66
65
mMemoryCache = BitmapConfig .mMemoryCache ;
66
+ mResponseDelayMs = bitmapConfig .delayTime ;
67
67
}
68
68
69
69
/**
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public HttpStack httpStackFactory() {
86
86
return new HttpConnectStack ();
87
87
} else {
88
88
return new HttpClientStack (
89
- AndroidHttpClient .newInstance ("volley /0" ));
89
+ AndroidHttpClient .newInstance ("kjframe /0" ));
90
90
}
91
91
}
92
92
Original file line number Diff line number Diff line change 21
21
*/
22
22
public final class KJConfig {
23
23
24
- public static final double VERSION = 2.239 ;
24
+ public static final double VERSION = 2.24 ;
25
25
26
26
/** 错误处理广播 */
27
27
public static final String RECEIVER_ERROR = KJConfig .class .getName ()
You can’t perform that action at this time.
0 commit comments