diff --git a/apps/Development/Android.mk b/apps/Development/Android.mk index 9dd2e1a34..560f5827c 100644 --- a/apps/Development/Android.mk +++ b/apps/Development/Android.mk @@ -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) diff --git a/apps/Development/src/com/android/development/Connectivity.java b/apps/Development/src/com/android/development/Connectivity.java index 53df61412..c454db6da 100644 --- a/apps/Development/src/com/android/development/Connectivity.java +++ b/apps/Development/src/com/android/development/Connectivity.java @@ -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) {