diff options
author | cretin45 <cretin45@gmail.com> | 2015-01-30 10:24:14 -0800 |
---|---|---|
committer | cretin45 <cretin45@gmail.com> | 2015-01-30 10:25:46 -0800 |
commit | 645354b463af20a848093062da9be963e61a3884 (patch) | |
tree | 5ab428b0b129b4da98cf73c6c8571007b89f5114 /src/com/cyanogenmod/setupwizard/setup/SimCardMissingPage.java | |
parent | d13e105da2f42024ac86bbc2d76bcaa423547fcd (diff) | |
download | packages_apps_SetupWizard-645354b463af20a848093062da9be963e61a3884.zip packages_apps_SetupWizard-645354b463af20a848093062da9be963e61a3884.tar.gz packages_apps_SetupWizard-645354b463af20a848093062da9be963e61a3884.tar.bz2 |
SetupWizard: Fixup layout and use sim graphic based on config
Change-Id: I73dd665a526c8a025e82a6f839d3dc9055742ed1
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup/SimCardMissingPage.java')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/setup/SimCardMissingPage.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/SimCardMissingPage.java b/src/com/cyanogenmod/setupwizard/setup/SimCardMissingPage.java index 63cc830..38fbdcc 100644 --- a/src/com/cyanogenmod/setupwizard/setup/SimCardMissingPage.java +++ b/src/com/cyanogenmod/setupwizard/setup/SimCardMissingPage.java @@ -20,6 +20,7 @@ import android.app.Fragment; import android.app.FragmentManager; import android.content.Context; import android.os.Bundle; +import android.widget.ImageView; import com.cyanogenmod.setupwizard.R; import com.cyanogenmod.setupwizard.ui.SetupPageFragment; @@ -64,7 +65,16 @@ public class SimCardMissingPage extends SetupPage { public static class SimCardMissingFragment extends SetupPageFragment { @Override - protected void initializePage() {} + protected void initializePage() { + final boolean simOnBack = getResources().getBoolean( + R.bool.sim_back); + ImageView simLogo = ((ImageView)mRootView.findViewById(R.id.sim_slot_image)); + if (simOnBack) { + simLogo.setImageResource(R.drawable.sim_back); + } else { + simLogo.setImageResource(R.drawable.sim_side); + } + } @Override protected int getLayoutResource() { |