Merge "[adbwifi] Handle tls port changes." into rvc-dev am: 63facb88bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/11828521 Change-Id: Ib5e569614e15f5c39590fc40a18b2673e45f9767
This commit is contained in:
@@ -113,11 +113,9 @@ public class WirelessDebuggingFragment extends DashboardFragment
|
||||
} else if (AdbManager.WIRELESS_DEBUG_STATE_CHANGED_ACTION.equals(action)) {
|
||||
int status = intent.getIntExtra(AdbManager.WIRELESS_STATUS_EXTRA,
|
||||
AdbManager.WIRELESS_STATUS_DISCONNECTED);
|
||||
if (status == AdbManager.WIRELESS_STATUS_CONNECTED) {
|
||||
int port = intent.getIntExtra(AdbManager.WIRELESS_DEBUG_PORT_EXTRA, 0);
|
||||
Log.i(TAG, "Got adbwifi port=" + port);
|
||||
} else {
|
||||
Log.i(TAG, "adbwifi server disconnected");
|
||||
if (status == AdbManager.WIRELESS_STATUS_CONNECTED
|
||||
|| status == AdbManager.WIRELESS_STATUS_DISCONNECTED) {
|
||||
sAdbIpAddressPreferenceController.updateState(mIpAddrPreference);
|
||||
}
|
||||
} else if (AdbManager.WIRELESS_DEBUG_PAIRING_RESULT_ACTION.equals(action)) {
|
||||
Integer res = intent.getIntExtra(
|
||||
|
Reference in New Issue
Block a user