Merge "Merge "Unbreak tethering for no offload supported devices" am: cb22e06783 am: 98c0b261f8" into rvc-dev-plus-aosp am: 3ba6bfb69e

Change-Id: I1e0bce5d5cd6bd5ff2f17a20bce7f566f67e3a5e
This commit is contained in:
Automerger Merge Worker
2020-04-27 09:32:24 +00:00

View File

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