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

Commit b09773de authored by Tony Wu's avatar Tony Wu Committed by Kenny Root
Browse files

Fix isUsbMassStorageConnected() will always return true

After UMS mounted, isUsbMassStorageConnected() will always return true even if USB is disconnected.
It's because mUmsEnabling will always be ture.

Change-Id: Ib24b2359ea2684eb0a9faeb880f383e87630e6e1
parent b595e094
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1155,7 +1155,7 @@ class MountService extends IMountService.Stub

    private void setUmsEnabling(boolean enable) {
        synchronized (mListeners) {
            mUmsEnabling = true;
            mUmsEnabling = enable;
        }
    }