Skip to content

Commit

Permalink
disable predictive back gesture in PIN/password input activities
Browse files Browse the repository at this point in the history
Predictive back UI reveals the previous activity and makes it partially interactable.
The previous activity might be protected by the top PIN/password input activity, e.g. the
fingerprint settings activity, duress password activity etc.

The list of activities was copied from an Android 15 Beta 4 build.
  • Loading branch information
muhomorr authored and thestinger committed Aug 6, 2024
1 parent 8981ad6 commit e6ac6fa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2641,9 +2641,11 @@
</activity>

<activity android:name=".password.ConfirmLockPattern"
android:enableOnBackInvokedCallback="false"
android:theme="@style/GlifTheme.Light"/>

<activity android:name=".password.ConfirmLockPassword"
android:enableOnBackInvokedCallback="false"
android:windowSoftInputMode="stateHidden|adjustResize"
android:theme="@style/GlifTheme.Light"/>

Expand Down Expand Up @@ -2811,11 +2813,13 @@

<!-- Note this must not be exported since it returns the password in the intent -->
<activity android:name=".password.ConfirmLockPassword$InternalActivity"
android:enableOnBackInvokedCallback="false"
android:exported="false"
android:windowSoftInputMode="adjustResize"
android:theme="@style/GlifTheme.Light"/>

<activity android:name=".password.SetupChooseLockGeneric"
android:enableOnBackInvokedCallback="false"
android:theme="@style/GlifTheme.Light"
android:exported="true"
android:label="@string/lock_settings_picker_title">
Expand All @@ -2826,15 +2830,18 @@
</activity>

<activity android:name=".password.SetupChooseLockGeneric$InternalActivity"
android:enableOnBackInvokedCallback="false"
android:exported="false"
android:excludeFromRecents="true" />

<activity android:name=".password.ChooseLockGeneric"
android:enableOnBackInvokedCallback="false"
android:label="@string/lockpassword_choose_lock_generic_header"
android:excludeFromRecents="true"
android:exported="false" />

<activity android:name=".password.SetNewPasswordActivity"
android:enableOnBackInvokedCallback="false"
android:theme="@android:style/Theme.NoDisplay"
android:exported="true"
android:excludeFromRecents="true" >
Expand Down Expand Up @@ -2890,24 +2897,29 @@
</activity>

<activity android:name=".password.ChooseLockGeneric$InternalActivity"
android:enableOnBackInvokedCallback="false"
android:exported="false"
android:label="@string/lockpassword_choose_lock_generic_header"
android:excludeFromRecents="true" />

<activity android:name=".password.SetupChooseLockPattern"
android:enableOnBackInvokedCallback="false"
android:exported="false"
android:theme="@style/GlifTheme.Light" />

<activity android:name=".password.ChooseLockPattern"
android:enableOnBackInvokedCallback="false"
android:exported="false"
android:theme="@style/GlifTheme.Light" />

<activity android:name=".password.SetupChooseLockPassword"
android:enableOnBackInvokedCallback="false"
android:exported="false"
android:theme="@style/GlifTheme.Light"
android:windowSoftInputMode="stateVisible|adjustResize" />

<activity android:name=".password.ChooseLockPassword"
android:enableOnBackInvokedCallback="false"
android:exported="false"
android:theme="@style/GlifTheme.Light"
android:windowSoftInputMode="stateVisible|adjustResize"/>
Expand Down

0 comments on commit e6ac6fa

Please sign in to comment.