summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/deviceinfo/StorageWizardBase.java
diff options
context:
space:
mode:
authorDaichi Hirono <hirono@google.com>2015-07-02 15:38:39 +0900
committerDaichi Hirono <hirono@google.com>2015-07-02 15:38:39 +0900
commitfba2fd8375f9eb4c93232cf08f2f2f5f043c4b16 (patch)
treeebef99a7acf5cbb6f98e9549f982a824730cb58b /src/com/android/settings/deviceinfo/StorageWizardBase.java
parentb96db532563ece8710a628f3eb27c08dbb0e373a (diff)
downloadpackages_apps_Settings-fba2fd8375f9eb4c93232cf08f2f2f5f043c4b16.tar.gz
packages_apps_Settings-fba2fd8375f9eb4c93232cf08f2f2f5f043c4b16.tar.bz2
packages_apps_Settings-fba2fd8375f9eb4c93232cf08f2f2f5f043c4b16.zip
Use 'setup' header illust before selecting storage type.
Previously the storage setup wizard shows 'internal' header illust before user selects storage type. The CL turns the initial illust into 'setup' header illust. BUG=22211635 Change-Id: Ie429a6197d210e0bd1ef8d0af6abb6f83295ac50
Diffstat (limited to 'src/com/android/settings/deviceinfo/StorageWizardBase.java')
-rw-r--r--src/com/android/settings/deviceinfo/StorageWizardBase.java28
1 files changed, 21 insertions, 7 deletions
diff --git a/src/com/android/settings/deviceinfo/StorageWizardBase.java b/src/com/android/settings/deviceinfo/StorageWizardBase.java
index beb0f3d173..df19783d50 100644
--- a/src/com/android/settings/deviceinfo/StorageWizardBase.java
+++ b/src/com/android/settings/deviceinfo/StorageWizardBase.java
@@ -164,13 +164,27 @@ public abstract class StorageWizardBase extends Activity {
secondBody.setVisibility(View.VISIBLE);
}
- protected void setIllustrationInternal(boolean internal) {
- if (internal) {
- getSetupWizardLayout().setIllustration(R.drawable.bg_internal_storage_header,
- R.drawable.bg_header_horizontal_tile);
- } else {
- getSetupWizardLayout().setIllustration(R.drawable.bg_portable_storage_header,
- R.drawable.bg_header_horizontal_tile);
+ protected static final int ILLUSTRATION_SETUP = 0;
+ protected static final int ILLUSTRATION_INTERNAL = 1;
+ protected static final int ILLUSTRATION_PORTABLE = 2;
+
+ protected void setIllustrationType(int type) {
+ switch (type) {
+ case ILLUSTRATION_SETUP:
+ getSetupWizardLayout().setIllustration(
+ R.drawable.bg_setup_header,
+ R.drawable.bg_header_horizontal_tile);
+ break;
+ case ILLUSTRATION_INTERNAL:
+ getSetupWizardLayout().setIllustration(
+ R.drawable.bg_internal_storage_header,
+ R.drawable.bg_header_horizontal_tile);
+ break;
+ case ILLUSTRATION_PORTABLE:
+ getSetupWizardLayout().setIllustration(
+ R.drawable.bg_portable_storage_header,
+ R.drawable.bg_header_horizontal_tile);
+ break;
}
}