Skip to content

Commit 021ad44

Browse files
committed
update ui
1 parent f546774 commit 021ad44

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

easy-ui/src/main/java/com/moioio/android/loader/ResourceLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static byte[] getDecode(byte[] cipherData,String key)
6060
public static File getCacheFile(Context context,String url,String md5,boolean isUseMd5)
6161
{
6262
String cachePath = AppFileUtil.makeCachePath(context,"cache");
63-
String path = cachePath+FileUtil.getCachFilePath(cachePath,url);
63+
String path = FileUtil.getCachFilePath(cachePath,url);
6464
if(isUseMd5)
6565
{
6666
path = cachePath+md5;

easy-ui/src/main/java/com/moioio/android/util/AppFileUtil.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
public class AppFileUtil {
2525

2626

27+
public static String toFileAssets(String name)
28+
{
29+
String path = "file:///android_assets/"+name;
30+
31+
return path;
32+
}
33+
34+
2735
public static String makeCachePath(Context context, String name) {
2836
String path = "";
2937

util-lib/src/main/java/com/moioio/util/StringUtil.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@
88
public class
99
StringUtil
1010
{
11+
12+
// private String stringForTime(int timeMs) {
13+
// int totalSeconds = timeMs / 1000;
14+
//StringBuilder mFormatBuilder;
15+
// int seconds = totalSeconds % 60;
16+
// int minutes = (totalSeconds / 60) % 60;
17+
// int hours = totalSeconds / 3600;
18+
//
19+
// mFormatBuilder.setLength(0);
20+
// if (hours > 0) {
21+
// return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString();
22+
// } else {
23+
// return mFormatter.format("%02d:%02d", minutes, seconds).toString();
24+
// }
25+
// }
26+
1127
static String STRING_NULL = "";
1228

1329
public static String STRING = "";

0 commit comments

Comments
 (0)