Skip to content

Commit 31c2b4c

Browse files
committed
see 12/08 log
1 parent c83e693 commit 31c2b4c

File tree

1 file changed

+29
-0
lines changed
  • utilcode/src/main/java/com/blankj/utilcode/utils

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package com.blankj.utilcode.utils;
2+
3+
import android.content.Context;
4+
5+
/**
6+
* <pre>
7+
* author: Blankj
8+
* blog : http://blankj.com
9+
* time : 16/12/08
10+
* desc :
11+
* </pre>
12+
*/
13+
public class Utils {
14+
15+
public static Context context;
16+
17+
private Utils() {
18+
throw new UnsupportedOperationException("u can't instantiate me...");
19+
}
20+
21+
/**
22+
* 初始化工具类
23+
*
24+
* @param context 上下文
25+
*/
26+
public static void init(Context context) {
27+
Utils.context = context.getApplicationContext();
28+
}
29+
}

0 commit comments

Comments
 (0)