Merge "Change the Development app to use a lambda." into nyc-dev
am: 40a583c79b
* commit '40a583c79b318ab6ec2b5aaf90ebfd4a6dc2530d':
Change the Development app to use a lambda.
This commit is contained in:
@@ -334,16 +334,7 @@ public class Connectivity extends Activity {
|
|||||||
public void onAvailable(Network network) {
|
public void onAvailable(Network network) {
|
||||||
mNetwork = network;
|
mNetwork = network;
|
||||||
onHttpRequestResults(null);
|
onHttpRequestResults(null);
|
||||||
// TODO: replace with:
|
runOnUiThread(() -> findViewById(mProgressBar).setVisibility(View.GONE));
|
||||||
// runOnUiThread(() -> {
|
|
||||||
// findViewById(mProgressBar).setVisibility(View.GONE);
|
|
||||||
// });
|
|
||||||
runOnUiThread(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
findViewById(mProgressBar).setVisibility(View.GONE);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void onLost(Network network) {
|
public void onLost(Network network) {
|
||||||
|
|||||||
Reference in New Issue
Block a user