Update the automatic storage management preferences.

This updates this page to match the newer mocks. The changes
include:

* Changing the toggle from a switch to a switch bar.
* Removing the Deletion Helper flow from the screen.
* Unit testing the previously untested functionality.

Change-Id: I35eb1e065c9acfbf32a64d659d35e18034025472
Fixes: 36486021
Test: Robotest
This commit is contained in:
Daniel Nishi
2017-03-21 14:13:39 -07:00
parent 3c0d5ff3d1
commit 1ee13fd386
4 changed files with 275 additions and 94 deletions

View File

@@ -18,38 +18,18 @@
xmlns:settings="http://schemas.android.com/apk/res-auto"
android:title="@string/automatic_storage_manager_settings" >
<PreferenceCategory
android:key="automatic"
android:title="@string/deletion_helper_automatic_title">
<SwitchPreference
android:key="storage_manager_active"
android:title="@string/automatic_storage_manager_preference_title"
android:summary="@string/automatic_storage_manager_text"/>
<Preference
android:key="freed_bytes"
android:persistent="false"
android:selectable="false" />
<DropDownPreference
android:key="days"
android:summary="%s"
android:title="@string/automatic_storage_manager_days_title"
android:entries="@array/automatic_storage_management_days"
android:entryValues="@array/automatic_storage_management_days_values"
settings:allowDividerAbove="true" />
</PreferenceCategory>
<PreferenceCategory
android:key="manual"
android:title="@string/deletion_helper_manual_title">
settings:allowDividerBelow="true" />
<Preference
android:key="deletion_helper"
android:title="@string/deletion_helper_preference_title"/>
</PreferenceCategory>
android:key="freed_bytes"
android:persistent="false"
android:selectable="false"
settings:allowDividerAbove="true" />
</PreferenceScreen>