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

Commit 8b3b8100 authored by Grigoriy Kraynov's avatar Grigoriy Kraynov
Browse files

WifiP2pWfdInfo set device type bugfix



Change-Id: I37a53aed80574e78c80dc4a4192bd8cc4320de9d
Signed-off-by: default avatarGrigoriy Kraynov <kraynov@mgpro.ru>
parent 4179e889
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -77,6 +77,7 @@ public class WifiP2pWfdInfo implements Parcelable {

    public boolean setDeviceType(int deviceType) {
        if (deviceType >= WFD_SOURCE && deviceType <= SOURCE_OR_PRIMARY_SINK) {
            mDeviceInfo &= ~DEVICE_TYPE;
            mDeviceInfo |= deviceType;
            return true;
        }