Skip to content

Commit 81c3bab

Browse files
author
Blankj
committed
see 03/03 log
1 parent e71c98f commit 81c3bab

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

‎utilcode/src/main/java/com/blankj/utilcode/util/SDCardUtils.java‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* author: Blankj
1616
* blog : http://blankj.com
1717
* time : 2016/08/11
18-
* desc : SD 卡相关工具类
18+
* desc : utils about sdcard
1919
* </pre>
2020
*/
2121
public final class SDCardUtils {
@@ -25,21 +25,20 @@ private SDCardUtils() {
2525
}
2626

2727
/**
28-
* 判断 SD 卡是否可用
28+
* Return whether sdcard is enabled.
2929
*
30-
* @return true : 可用<br>false : 不可用
30+
* @return true : enabled<br>false : disabled
3131
*/
3232
public static boolean isSDCardEnable() {
3333
return !getSDCardPaths().isEmpty();
3434
}
3535

3636
/**
37-
* 获取 SD 卡路径
37+
* Return the paths of sdcard.
3838
*
39-
* @param removable true : 外置 SD 卡<br>false : 内置 SD 卡
40-
* @return SD 卡路径
39+
* @param removable True to return the paths of removable sdcard, false otherwise.
40+
* @return the paths of sdcard
4141
*/
42-
@SuppressWarnings("TryWithIdenticalCatches")
4342
public static List<String> getSDCardPaths(final boolean removable) {
4443
List<String> paths = new ArrayList<>();
4544
StorageManager sm =
@@ -72,11 +71,10 @@ public static List<String> getSDCardPaths(final boolean removable) {
7271
}
7372

7473
/**
75-
* 获取 SD 卡路径
74+
* Return the paths of sdcard.
7675
*
77-
* @return SD 卡路径
76+
* @return the paths of sdcard
7877
*/
79-
@SuppressWarnings("TryWithIdenticalCatches")
8078
public static List<String> getSDCardPaths() {
8179
StorageManager storageManager = (StorageManager) Utils.getApp()
8280
.getSystemService(Context.STORAGE_SERVICE);

0 commit comments

Comments
 (0)