private void displayThemeImages() { if (mUserTheme != null) { mThemeManager.displayThemeImage( mUserTheme.getTopImg(), mTopImageView, R.drawable.user_show_bg); } else { mTopImageView.setImageResource(R.drawable.user_show_bg); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Activity activity = getActivity(); mAccountManager = AccountManager.getInstance(activity); mSettingHelper = SettingHelper.getInstance(activity); mAvatarManager = AvatarManager.getInstance(activity); mThemeManager = ThemeManager.getInstance(activity); mUserTheme = getUserTheme(); mNickname = mSettingHelper.getAccountNickname(); mInfoAdapter = new PersonalInfoAdapter(activity, setupViewItems(activity)); }