diff options
Diffstat (limited to 'src/com/android/settings/deviceinfo/StorageWizardBase.java')
-rw-r--r-- | src/com/android/settings/deviceinfo/StorageWizardBase.java | 28 |
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; } } |