Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff236cfb authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Merge "Unbreak tethering for no offload supported devices" am:...

Merge "Merge "Unbreak tethering for no offload supported devices" am: 71dd69e1 am: 89fbc995" into rvc-dev-plus-aosp am: 3ba6bfb6 am: aaa400ad am: 32f667b8

Change-Id: I6fa56f1c428263499a18d32c31de38fb3e9a2d04
parents ff14a378 32f667b8
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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;
            }