OSDN Git Service

Use this.isUp() inside InterfaceConfiguration
authorChristopher Wiley <wiley@google.com>
Mon, 17 Oct 2016 17:30:28 +0000 (10:30 -0700)
committerChristopher Wiley <wiley@google.com>
Mon, 17 Oct 2016 17:32:40 +0000 (10:32 -0700)
Bug: 31337216
Test: Compiles
Change-Id: I968a739f9ada47b1357932d2da76451eb26c3d5f

core/java/android/net/InterfaceConfiguration.java

index eace8b2..34cde08 100644 (file)
@@ -113,7 +113,7 @@ public class InterfaceConfiguration implements Parcelable {
      */
     public boolean isActive() {
         try {
-            if (hasFlag(FLAG_UP)) {
+            if (isUp()) {
                 for (byte b : mAddr.getAddress().getAddress()) {
                     if (b != 0) return true;
                 }