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

Commit 16a3f98b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Settings: Extend the data role swap timeout value" am: bb994f62 am:...

Merge "Settings: Extend the data role swap timeout value" am: bb994f62 am: df2a22f1 am: 26bf610f

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1912875

Change-Id: I86be84ebc20266fb0b6af1b2faa196def582da55
parents f6f978ec 26bf610f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -41,7 +41,10 @@ import java.util.List;
 */
public class UsbBackend {

    static final int PD_ROLE_SWAP_TIMEOUT_MS = 3000;
    // extend this value from 3s to 4s because of switching data role
    // in USB driver side takes about 3s in some devices, plus the usb
    // port change event dispatching time, 3s is not enough.
    static final int PD_ROLE_SWAP_TIMEOUT_MS = 4000;
    static final int NONPD_ROLE_SWAP_TIMEOUT_MS = 15000;

    private final boolean mFileTransferRestricted;