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

Commit ffc4952e authored by paphonb's avatar paphonb Committed by Michael Bestas
Browse files

Fix search bar incorrectly positioned after swiping up to home

Change-Id: I3c29fe43ea77f5b3a842242b1e66633eac4459de
parent 97566677
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -91,10 +91,12 @@ public class AppsSearchContainerLayout extends ExtendedEditText
        mSearchQueryBuilder = new SpannableStringBuilder();
        Selection.setSelection(mSearchQueryBuilder, 0);

        mFixedTranslationY = getTranslationY();
        mFixedTranslationY = Math.round(getTranslationY());
        mMarginTopAdjusting = mFixedTranslationY - getPaddingTop();

        setHint(prefixTextWithIcon(getContext(), R.drawable.ic_allapps_search, getHint()));

        setTranslationY(0);
    }

    private Launcher tryGetLauncher(Context context) {
@@ -144,6 +146,7 @@ public class AppsSearchContainerLayout extends ExtendedEditText
        int expectedLeft = parent.getPaddingLeft() + (availableWidth - myWidth) / 2;
        int shift = expectedLeft - left;
        setTranslationX(shift);
        offsetTopAndBottom((int) mFixedTranslationY);
    }

    @Override