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

Commit eabfad6b authored by Mark Chien's avatar Mark Chien Committed by Automerger Merge Worker
Browse files

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

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

Change-Id: Ibe23f24c74cbf186377fbcaf0404b99aa78b59e4
parents 1a7411f6 182fea42
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;
            }