Add buttons for new settings design
This adds a new class called PrimaryProviderPreference which is responsible for laying out the old cog view if the feature is disabled and the new button view if it is enabled. Screenshots: https://hsv.googleplex.com/5109836204212224 https://hsv.googleplex.com/5574754636398592 https://hsv.googleplex.com/6737135727017984 Change-Id: I1ad0c59a4afc5be3694b499f66bbd7306dfbee69 Test: Manual test with flag on + off & unit tests Bug: 300979487
This commit is contained in:
@@ -27,15 +27,14 @@
|
||||
android:order="10"
|
||||
android:title="@string/credman_chosen_app_title">
|
||||
|
||||
<com.android.settings.widget.GearPreference
|
||||
android:fragment="com.android.settings.applications.credentials.DefaultCombinedPickerWork"
|
||||
<com.android.settings.applications.credentials.PrimaryProviderPreference
|
||||
android:key="default_credman_autofill_main_work"
|
||||
android:title="@string/credman_chosen_app_title"
|
||||
settings:searchable="false">
|
||||
<extra
|
||||
android:name="for_work"
|
||||
android:value="true" />
|
||||
</com.android.settings.widget.GearPreference>
|
||||
</com.android.settings.applications.credentials.PrimaryProviderPreference>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
|
||||
Reference in New Issue
Block a user