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

Commit 1b834296 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix(?) for some disabled ChooserActivityTest cases"

parents 29fe851d 72b8b079
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -3073,8 +3073,15 @@ public class ChooserActivityTest {
    // framework code on the device is up-to-date.
    // TODO: is there a better way to do this? (Other than abandoning inheritance-based DI wrapper?)
    private int getRuntimeResourceId(String name, String defType) {
        int id = mActivityRule.getActivity().getResources().getIdentifier(name, defType, "android");
        int id = -1;
        if (ChooserActivityOverrideData.getInstance().resources != null) {
            id = ChooserActivityOverrideData.getInstance().resources.getIdentifier(
                  name, defType, "android");
        } else {
            id = mActivityRule.getActivity().getResources().getIdentifier(name, defType, "android");
        }
        assertThat(id, greaterThan(0));

        return id;
    }
}