Merge "[adbwifi] Handle tls port changes." into rvc-dev
This commit is contained in:
@@ -113,11 +113,9 @@ public class WirelessDebuggingFragment extends DashboardFragment
|
|||||||
} else if (AdbManager.WIRELESS_DEBUG_STATE_CHANGED_ACTION.equals(action)) {
|
} else if (AdbManager.WIRELESS_DEBUG_STATE_CHANGED_ACTION.equals(action)) {
|
||||||
int status = intent.getIntExtra(AdbManager.WIRELESS_STATUS_EXTRA,
|
int status = intent.getIntExtra(AdbManager.WIRELESS_STATUS_EXTRA,
|
||||||
AdbManager.WIRELESS_STATUS_DISCONNECTED);
|
AdbManager.WIRELESS_STATUS_DISCONNECTED);
|
||||||
if (status == AdbManager.WIRELESS_STATUS_CONNECTED) {
|
if (status == AdbManager.WIRELESS_STATUS_CONNECTED
|
||||||
int port = intent.getIntExtra(AdbManager.WIRELESS_DEBUG_PORT_EXTRA, 0);
|
|| status == AdbManager.WIRELESS_STATUS_DISCONNECTED) {
|
||||||
Log.i(TAG, "Got adbwifi port=" + port);
|
sAdbIpAddressPreferenceController.updateState(mIpAddrPreference);
|
||||||
} else {
|
|
||||||
Log.i(TAG, "adbwifi server disconnected");
|
|
||||||
}
|
}
|
||||||
} else if (AdbManager.WIRELESS_DEBUG_PAIRING_RESULT_ACTION.equals(action)) {
|
} else if (AdbManager.WIRELESS_DEBUG_PAIRING_RESULT_ACTION.equals(action)) {
|
||||||
Integer res = intent.getIntExtra(
|
Integer res = intent.getIntExtra(
|
||||||
|
Reference in New Issue
Block a user