Fix Fingerprint enrollment UI when display size is largest.
1. Remove land/udfps_enroll_enrolling and use the default land layout instead. Swap header and content when necessary to avoid overlap. 2. Add UdfpsEnrollEnrollingView.java Test: manual test - 1. Set system display and font size largest 2. Launch fingerprint enrollment and check UI. Test: atest FingerprintEnrollEnrollingTest Bug: 269060514 Bug: 283169056 Change-Id: Ifbe6c92c4213979952f2f89a1cd595c9c4bff6ec
This commit is contained in:
@@ -133,6 +133,7 @@ public abstract class BiometricEnrollBase extends InstrumentedActivity {
|
||||
protected long mChallenge;
|
||||
protected boolean mFromSettingsSummary;
|
||||
protected FooterBarMixin mFooterBarMixin;
|
||||
protected boolean mShouldSetFooterBarBackground = true;
|
||||
@Nullable
|
||||
protected ScreenSizeFoldProvider mScreenSizeFoldProvider;
|
||||
@Nullable
|
||||
@@ -191,12 +192,14 @@ public abstract class BiometricEnrollBase extends InstrumentedActivity {
|
||||
super.onPostCreate(savedInstanceState);
|
||||
initViews();
|
||||
|
||||
@SuppressLint("VisibleForTests")
|
||||
final LinearLayout buttonContainer = mFooterBarMixin != null
|
||||
? mFooterBarMixin.getButtonContainer()
|
||||
: null;
|
||||
if (buttonContainer != null) {
|
||||
buttonContainer.setBackgroundColor(getBackgroundColor());
|
||||
if (mShouldSetFooterBarBackground) {
|
||||
@SuppressLint("VisibleForTests")
|
||||
final LinearLayout buttonContainer = mFooterBarMixin != null
|
||||
? mFooterBarMixin.getButtonContainer()
|
||||
: null;
|
||||
if (buttonContainer != null) {
|
||||
buttonContainer.setBackgroundColor(getBackgroundColor());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -331,7 +334,7 @@ public abstract class BiometricEnrollBase extends InstrumentedActivity {
|
||||
}
|
||||
|
||||
@ColorInt
|
||||
private int getBackgroundColor() {
|
||||
public int getBackgroundColor() {
|
||||
final ColorStateList stateList = Utils.getColorAttr(this, android.R.attr.windowBackground);
|
||||
return stateList != null ? stateList.getDefaultColor() : Color.TRANSPARENT;
|
||||
}
|
||||
|
Reference in New Issue
Block a user