Merge "Revert "Fix lock pattern is truncated during SUW in folded state"" into udc-qpr-dev
This commit is contained in:
@@ -94,12 +94,6 @@ public class SetupChooseLockPattern extends ChooseLockPattern {
|
|||||||
}
|
}
|
||||||
// Show the skip button during SUW but not during Settings > Biometric Enrollment
|
// Show the skip button during SUW but not during Settings > Biometric Enrollment
|
||||||
mSkipOrClearButton.setOnClickListener(this::onSkipOrClearButtonClick);
|
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;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -28,7 +28,6 @@ import android.content.res.Resources;
|
|||||||
import android.os.UserHandle;
|
import android.os.UserHandle;
|
||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
@@ -115,14 +114,6 @@ public class SetupChooseLockPatternTest {
|
|||||||
assertThat(button.getVisibility()).isEqualTo(View.VISIBLE);
|
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() {
|
private void verifyScreenLockOptionsShown() {
|
||||||
final Button button = mActivity.findViewById(R.id.screen_lock_options);
|
final Button button = mActivity.findViewById(R.id.screen_lock_options);
|
||||||
assertThat(button).isNotNull();
|
assertThat(button).isNotNull();
|
||||||
|
Reference in New Issue
Block a user