Revert "Upgrade the Development app to 1.8, and use a lambda."
This reverts commit 17f05f5820.
Change-Id: Idc8259a5a2fd209c19a6f548ddf8b1a09ed33966
This commit is contained in:
@@ -11,6 +11,4 @@ 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,7 +334,16 @@ public class Connectivity extends Activity {
|
||||
public void onAvailable(Network network) {
|
||||
mNetwork = network;
|
||||
onHttpRequestResults(null);
|
||||
runOnUiThread(() -> findViewById(mProgressBar).setVisibility(View.GONE));
|
||||
// TODO: replace with:
|
||||
// runOnUiThread(() -> {
|
||||
// findViewById(mProgressBar).setVisibility(View.GONE);
|
||||
// });
|
||||
runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
findViewById(mProgressBar).setVisibility(View.GONE);
|
||||
}
|
||||
});
|
||||
}
|
||||
@Override
|
||||
public void onLost(Network network) {
|
||||
|
||||
Reference in New Issue
Block a user