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

Commit 44607301 authored by Mario Bertschler's avatar Mario Bertschler
Browse files

Fixes a bug when using the prediction row view and changing screen orientation.

Bug: 68713881
Change-Id: I9740eee8425d42af87c8c788aefff9a99ae48d2f
parent 0c2d9b0f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -543,6 +543,9 @@ public class AllAppsContainerView extends RelativeLayout implements DragSource,
    }

    private void setupHeader() {
        if (mFloatingHeaderHandler == null) {
            return;
        }
        mHeader.setVisibility(View.VISIBLE);
        int contentHeight = mLauncher.getDeviceProfile().allAppsCellHeightPx;
        if (!mUsingTabs) {
+4 −1
Original line number Diff line number Diff line
@@ -68,7 +68,10 @@ public class PredictionRowView extends LinearLayout {
     * Sets the number of apps per row.
     */
    public void setNumAppsPerRow(int numPredictedAppsPerRow) {
        if (mNumPredictedAppsPerRow != numPredictedAppsPerRow) {
            mNumPredictedAppsPerRow = numPredictedAppsPerRow;
            onAppsUpdated();
        }
    }

    /**