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

Commit 072a0e00 authored by Shawn Lin's avatar Shawn Lin Committed by Android (Google) Code Review
Browse files

Revert "Fix lock pattern is truncated during SUW in folded state"

This reverts commit a2e032bb.

Reason for revert: b/290721507 

Change-Id: Ifaaecde6c168ebe22d3b2245df1fd5b0a9c1b8c2
parent a2e032bb
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -90,12 +90,6 @@ public class SetupChooseLockPattern extends ChooseLockPattern {
            }
            // Show the skip button during SUW but not during Settings > Biometric Enrollment
            mSkipOrClearButton.setOnClickListener(this::onSkipOrClearButtonClick);

            final View headerView = view.findViewById(R.id.sud_layout_header);
            final ViewGroup.MarginLayoutParams lp =
                    (ViewGroup.MarginLayoutParams) headerView.getLayoutParams();
            lp.bottomMargin = 0;
            view.setLayoutParams(lp);
            return view;
        }

+0 −9
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@ import android.content.res.Resources;
import android.os.UserHandle;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

@@ -115,14 +114,6 @@ public class SetupChooseLockPatternTest {
        assertThat(button.getVisibility()).isEqualTo(View.VISIBLE);
    }

    @Test
    public void headerView_noBottomMargin() {
        final View header = mActivity.findViewById(R.id.sud_layout_header);
        final ViewGroup.MarginLayoutParams lp =
                (ViewGroup.MarginLayoutParams) header.getLayoutParams();
        assertThat(lp.bottomMargin).isEqualTo(0);
    }

    private void verifyScreenLockOptionsShown() {
        final Button button = mActivity.findViewById(R.id.screen_lock_options);
        assertThat(button).isNotNull();