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
api-impl: stubs and fixes for latest WhatsApp version
This commit is contained in:
committed by
Julian Winkler
parent
09a38f9a28
commit
c81442321e
@@ -1,6 +1,6 @@
|
||||
package android.net;
|
||||
|
||||
class Network {}
|
||||
import android.os.Handler;
|
||||
|
||||
public class ConnectivityManager {
|
||||
|
||||
@@ -26,4 +26,11 @@ public class ConnectivityManager {
|
||||
public NetworkInfo[] getAllNetworkInfo() {
|
||||
return new NetworkInfo[] { getActiveNetworkInfo() };
|
||||
}
|
||||
|
||||
public Network getActiveNetwork() {
|
||||
return new Network();
|
||||
}
|
||||
|
||||
public void registerDefaultNetworkCallback(NetworkCallback cb, Handler hdl) {}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user