From df6a7e55ccffd4a8b17780ee07b9f11988b98aaa Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Wed, 8 Dec 2010 18:46:38 -0800 Subject: [PATCH] Add backup configuration action to Privacy settings Settings now queries the backup manager for a configuration Intent and text descriptive of the state of the currently-active transport. These are used by a new Intent PreferenceScreen within the backup section of the Privacy settings UI. When touched, the Configure item launches the Intent supplied by the transport; when no such Intent is available, the item is disabled. The summary text describing the current backup state is also supplied by the transport. Bug: 2753632 Change-Id: I3d8fb3d4b08a2b6fa8d3ad8f9e02a66430948423 --- res/values/strings.xml | 4 +++ res/xml/privacy_settings.xml | 8 +++++ src/com/android/settings/PrivacySettings.java | 36 +++++++++++++++---- 3 files changed, 42 insertions(+), 6 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 5df08d7d1a0..36046c49d1e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2906,6 +2906,10 @@ found in the list of installed applications. Back up my data Back up application data, Wi-Fi passwords, and other settings to Google servers + + Configure backup + + No backup destination is available. Automatic restore diff --git a/res/xml/privacy_settings.xml b/res/xml/privacy_settings.xml index 86fc30658a6..c28dbc1901e 100644 --- a/res/xml/privacy_settings.xml +++ b/res/xml/privacy_settings.xml @@ -25,6 +25,14 @@ android:title="@string/backup_data_title" android:summary="@string/backup_data_summary" android:persistent="false" /> + + +