Upgrade the Development app to 1.8, and use a lambda.
Change-Id: Ifa3836a3c5fc36a1932ea0d841e412ef238fb4bb
diff --git a/apps/Development/Android.mk b/apps/Development/Android.mk
index 9dd2e1a..560f582 100644
--- a/apps/Development/Android.mk
+++ b/apps/Development/Android.mk
@@ -11,4 +11,6 @@
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 53df614..c454db6 100644
--- a/apps/Development/src/com/android/development/Connectivity.java
+++ b/apps/Development/src/com/android/development/Connectivity.java
@@ -334,16 +334,7 @@
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) {