Add setting to allow configuration of long press home gesture
This allows configuration of long press home gesture on 2-/3-button navigation configurations. It allows the user to enable and disable the invocation of assistant app using said gesture.
Bug: 191888710
Test: Unit tests and on a physical device.
Change-Id: I18cb290058ac5c2a748d40802b942404f548b868
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index c23b93e..27a6abd 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -3932,6 +3932,25 @@
android:value="true" />
</activity>
+ <activity
+ android:name="Settings$ButtonNavigationSettingsActivity"
+ android:label="Button Navigation Settings"
+ android:exported="true"
+ android:enabled="true">
+ <intent-filter android:priority="32">
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="com.android.settings.SHORTCUT" />
+ </intent-filter>
+ <intent-filter android:priority="1">
+ <action android:name="com.android.settings.BUTTON_NAVIGATION_SETTINGS" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
+ android:value="com.android.settings.gestures.ButtonNavigationSettingsFragment" />
+ <meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
+ android:value="true" />
+ </activity>
+
<activity android:name="Settings$MediaControlsSettingsActivity"
android:exported="true"
android:label="@strings/media_controls_title">