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

Commit fa4bde6d authored by Hao Dong's avatar Hao Dong
Browse files

Implement PromptContentViewWithMoreOptionsButton for credential view

Flag: ACONFIG android.hardware.biometrics.custom_biometric_prompt DEVELOPMENT
Bug: 328843028
Test: atest PromptRepositoryImplTest
Test: atest BiometricPromptRequestTest
Test: atest PromptCredentialInteractorTest
Test: atest AuthContainerViewTest

Change-Id: I57d0b6532d748fc9e7bf54185ebb8d4a6419ba15
parent 7d63f48a
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -53,6 +53,15 @@
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <LinearLayout
        android:id="@+id/customized_view_container"
        android:orientation="vertical"
        android:gravity="center_vertical"
        android:layout_below="@id/subtitle"
        android:layout_alignParentLeft="true"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

  </RelativeLayout>

  <FrameLayout
+9 −0
Original line number Diff line number Diff line
@@ -60,6 +60,15 @@
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>

        <LinearLayout
            android:id="@+id/customized_view_container"
            android:orientation="vertical"
            android:gravity="center_vertical"
            android:layout_below="@id/subtitle"
            android:layout_alignParentLeft="true"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

        <TextView
            android:id="@+id/error"
            style="?errorTextAppearanceLand"
+7 −0
Original line number Diff line number Diff line
@@ -55,6 +55,13 @@
          android:layout_height="wrap_content"
          android:layout_below="@id/subtitle" />

      <LinearLayout
          android:id="@+id/customized_view_container"
          android:orientation="vertical"
          android:gravity="center_vertical"
          android:layout_below="@id/subtitle"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" />
    </RelativeLayout>

  </ScrollView>
+8 −0
Original line number Diff line number Diff line
@@ -56,6 +56,14 @@
            android:layout_below="@id/subtitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>

        <LinearLayout
            android:id="@+id/customized_view_container"
            android:orientation="vertical"
            android:gravity="center_vertical"
            android:layout_below="@id/subtitle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />
    </RelativeLayout>

    <RelativeLayout
+2 −1
Original line number Diff line number Diff line
@@ -518,7 +518,8 @@ public class AuthContainerView extends LinearLayout
                mConfig.mOpPackageName);
        final CredentialViewModel vm = mCredentialViewModelProvider.get();
        vm.setAnimateContents(animateContents);
        ((CredentialView) mCredentialView).init(vm, this, mPanelController, animatePanel);
        ((CredentialView) mCredentialView).init(vm, this, mPanelController, animatePanel,
                mBiometricCallback);

        mLayout.addView(mCredentialView);
    }
Loading