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

Commit 5dc92133 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Fix some PackageManagerTests."

parents 6b3db37f 8452d940
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() {