IsAndroid is now a part of OS
This commit is contained in:
parent
5ecbf451cb
commit
71bc6110e0
|
@ -28,8 +28,6 @@ import java.util.Map.Entry;
|
|||
@SuppressWarnings("unused")
|
||||
public final
|
||||
class Sys {
|
||||
public static final boolean isAndroid = getIsAndroid();
|
||||
|
||||
public static final int KILOBYTE = 1024;
|
||||
public static final int MEGABYTE = 1024 * KILOBYTE;
|
||||
public static final int GIGABYTE = 1024 * MEGABYTE;
|
||||
|
@ -46,17 +44,6 @@ class Sys {
|
|||
return charArray;
|
||||
}
|
||||
|
||||
private static
|
||||
boolean getIsAndroid() {
|
||||
try {
|
||||
Class.forName("android.os.Process");
|
||||
return true;
|
||||
} catch (Exception ignored) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static
|
||||
void eraseString(String string) {
|
||||
// You can change the value of the inner char[] using reflection.
|
||||
|
|
Loading…
Reference in New Issue
Block a user