Merge "Unbreak tethering for no offload supported devices" into rvc-dev am: 48a2ffac38

Change-Id: Ibb783aeacc0f15b865508f7e48ed43ef35a4933d
This commit is contained in:
Mark Chien
2020-04-27 12:33:26 +00:00
committed by Automerger Merge Worker

View File

@@ -41,6 +41,7 @@ import java.io.IOException;
import java.net.SocketAddress;
import java.net.SocketException;
import java.util.ArrayList;
import java.util.NoSuchElementException;
/**
@@ -143,7 +144,7 @@ public class OffloadHardwareInterface {
IOffloadConfig offloadConfig;
try {
offloadConfig = IOffloadConfig.getService(true /*retry*/);
} catch (RemoteException e) {
} catch (RemoteException | NoSuchElementException e) {
mLog.e("getIOffloadConfig error " + e);
return false;
}
@@ -239,8 +240,8 @@ public class OffloadHardwareInterface {
if (mOffloadControl == null) {
try {
mOffloadControl = IOffloadControl.getService();
} catch (RemoteException e) {
mOffloadControl = IOffloadControl.getService(true /*retry*/);
} catch (RemoteException | NoSuchElementException e) {
mLog.e("tethering offload control not supported: " + e);
return false;
}