You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
refactor source tree organization, switch to meson
This commit is contained in:
20
src/api-impl/android/net/NetworkInfo.java
Normal file
20
src/api-impl/android/net/NetworkInfo.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package android.net;
|
||||
|
||||
public class NetworkInfo {
|
||||
public enum State {
|
||||
CONNECTED,
|
||||
CONNECTING,
|
||||
DISCONNECTED,
|
||||
DISCONNECTING,
|
||||
SUSPENDED,
|
||||
UNKNOWN
|
||||
}
|
||||
|
||||
public NetworkInfo.State getState() {
|
||||
return State.DISCONNECTED;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return 0x8; // where did you even get a NetworkInfo object... there is no network
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user