提交 dfeababe 编写于 作者: B Blankj

see 01/24 log

上级 d46e7ce5
......@@ -25,5 +25,5 @@ dependencies {
testCompile rootProject.ext.deps.truth
testCompile rootProject.ext.deps.robolectric
}
//apply from: "https://raw.githubusercontent.com/xiaopansky/android-library-publish-to-jcenter/master/bintrayUpload.gradle"
apply from: "https://raw.githubusercontent.com/xiaopansky/android-library-publish-to-jcenter/master/bintrayUpload.gradle"
//gradlew bintrayUpload
......@@ -77,7 +77,7 @@ public class LunarUtils {
/**
* @param lunarYear 农历年份
* @return String of Ganzhi: 甲子年 Tiangan:甲乙丙丁戊己庚辛壬癸<br/>
* @return String of Ganzhi: 甲子年 Tiangan:甲乙丙丁戊己庚辛壬癸
* Dizhi: 子丑寅卯辰巳无为申酉戌亥
*/
public static String lunarYearToGanZhi(int lunarYear) {
......
......@@ -154,14 +154,13 @@ public class ScreenUtils {
* @return {@code true}: 是<br>{@code false}: 否
*/
public static boolean isScreenLock() {
KeyguardManager km = (KeyguardManager) Utils.getContext()
.getSystemService(Context.KEYGUARD_SERVICE);
KeyguardManager km = (KeyguardManager) Utils.getContext().getSystemService(Context.KEYGUARD_SERVICE);
return km.inKeyguardRestrictedInputMode();
}
/**
* 设置进入休眠时长
* <uses-permission android:name="android.permission.WRITE_SETTINGS" />
* <p>需添加权限 {@code <uses-permission android:name="android.permission.WRITE_SETTINGS" />}</p>
*
* @param duration 时长
*/
......
......@@ -25,8 +25,7 @@ public class TestUtils {
static final char SEP = File.separatorChar;
static final String BASEPATH = System.getProperty("user.dir")
+ SEP + "src" + SEP + "test" + SEP + "res" + SEP;
static final String BASEPATH = System.getProperty("user.dir") + SEP + "src" + SEP + "test" + SEP + "res" + SEP;
public static void init() {
Utils.init(RuntimeEnvironment.application);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册