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

Commit 8452d940 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Fix some PackageManagerTests.

Change-Id: Iba9afc731fce69fe2f310661a0bfcf6bc7432e2c
parent a6658195
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -1168,18 +1168,12 @@ public class PackageManagerTests extends AndroidTestCase {
    }

    boolean checkMediaState(String desired) {
        try {
            String mPath = Environment.getExternalStorageDirectory().getPath();
            String actual = getMs().getVolumeState(mPath);
        String actual = Environment.getExternalStorageState();
        if (desired.equals(actual)) {
            return true;
        } else {
            return false;
        }
        } catch (RemoteException e) {
            Log.e(TAG, "Exception while checking media state", e);
            return false;
        }
    }

    boolean mountMedia() {