Upgrade the Development app to 1.8, and use a lambda.
Change-Id: Ifa3836a3c5fc36a1932ea0d841e412ef238fb4bb
This commit is contained in:
@@ -11,4 +11,6 @@ LOCAL_SRC_FILES := $(call all-subdir-java-files) \
|
||||
LOCAL_PACKAGE_NAME := Development
|
||||
LOCAL_CERTIFICATE := platform
|
||||
|
||||
LOCAL_JAVA_LANGUAGE_VERSION := 1.8
|
||||
|
||||
include $(BUILD_PACKAGE)
|
||||
|
||||
@@ -334,16 +334,7 @@ public class Connectivity extends Activity {
|
||||
public void onAvailable(Network network) {
|
||||
mNetwork = network;
|
||||
onHttpRequestResults(null);
|
||||
// TODO: replace with:
|
||||
// runOnUiThread(() -> {
|
||||
// findViewById(mProgressBar).setVisibility(View.GONE);
|
||||
// });
|
||||
runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
findViewById(mProgressBar).setVisibility(View.GONE);
|
||||
}
|
||||
});
|
||||
runOnUiThread(() -> findViewById(mProgressBar).setVisibility(View.GONE));
|
||||
}
|
||||
@Override
|
||||
public void onLost(Network network) {
|
||||
|
||||
Reference in New Issue
Block a user