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

Commit 0795824e authored by Diksha Gohlyan's avatar Diksha Gohlyan Committed by Automerger Merge Worker
Browse files

Merge "Use same formula to check height and input text size" into rvc-dev am:...

Merge "Use same formula to check height and input text size" into rvc-dev am: 17dea302 am: 8da2dd03 am: 3eb253dd am: 7cbfd7e8 am: cd2061de

Change-Id: I869a0806c3f5daf620d772b484712b5cef77457e
parents 4f4bcea8 cd2061de
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -201,10 +201,11 @@ public class DialogUiTest {

        final TextInputEditText inputView =
                mCreateDirectoryFragment.getDialog().getWindow().findViewById(android.R.id.text1);
        Paint paint = inputView.getPaint();
        final float textSize = paint.getTextSize();

        assertTrue(inputView.getHeight() > Math.round(textSize));
        assertTrue(
                "Failed with inputView height " + inputView.getHeight() + " and input text height "
                        + getInputTextHeight(inputView),
                inputView.getHeight() > getInputTextHeight(inputView));

        switchOrientation(mActivityTestRule.getActivity());
    }