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

Commit 29248e19 authored by Mike Kasick's avatar Mike Kasick
Browse files

Add LegacyUsbDeviceManager::setCurrentFunction method.

Method implementation is the same as UsbDeviceManager::setCurrentFunction.
The override is required to use LegacyUsbDeviceManager's mHandler, as
UsbDeviceManager's mHandler is an uninitialized private field.

Change-Id: I9ffece5247c17de77fa799e1f6c9b439ebd074db
parent e8616aaf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -640,4 +640,10 @@ public class LegacyUsbDeviceManager extends UsbDeviceManager {
            }
        }
    }

    @Override
    public void setCurrentFunction(String function, boolean makeDefault) {
        if (DEBUG) Slog.d(TAG, "setCurrentFunction(" + function + ") default: " + makeDefault);
        mHandler.sendMessage(MSG_SET_CURRENT_FUNCTION, function, makeDefault);
    }
}