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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user