mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
Made some functions in DirectoryManager public
This commit is contained in:
parent
3a55991480
commit
9288158226
@ -40,7 +40,7 @@ public class DirectoryManager {
|
|||||||
* @param name The name of the file to check.
|
* @param name The name of the file to check.
|
||||||
* @return T=exists, F=not found
|
* @return T=exists, F=not found
|
||||||
*/
|
*/
|
||||||
protected static boolean testFileExists(String name) {
|
public static boolean testFileExists(String name) {
|
||||||
boolean status;
|
boolean status;
|
||||||
|
|
||||||
// If SD card exists
|
// If SD card exists
|
||||||
@ -61,7 +61,7 @@ public class DirectoryManager {
|
|||||||
*
|
*
|
||||||
* @return Size in KB or -1 if not available
|
* @return Size in KB or -1 if not available
|
||||||
*/
|
*/
|
||||||
protected static long getFreeDiskSpace(boolean checkInternal) {
|
public static long getFreeDiskSpace(boolean checkInternal) {
|
||||||
String status = Environment.getExternalStorageState();
|
String status = Environment.getExternalStorageState();
|
||||||
long freeSpace = 0;
|
long freeSpace = 0;
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ public class DirectoryManager {
|
|||||||
*
|
*
|
||||||
* @return T=exists, F=not found
|
* @return T=exists, F=not found
|
||||||
*/
|
*/
|
||||||
protected static boolean testSaveLocationExists() {
|
public static boolean testSaveLocationExists() {
|
||||||
String sDCardStatus = Environment.getExternalStorageState();
|
String sDCardStatus = Environment.getExternalStorageState();
|
||||||
boolean status;
|
boolean status;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user