Change the Development app to use a lambda.
This is a cherry pick and modification of
commit 17f05f5820.
Bug: 26753820
Change-Id: I55419fac85196d86d548d455880d897015d8ea84
This commit is contained in:
committed by
Neil Fuller
parent
391be47296
commit
503abedac9
@@ -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