public ThemeSupport(ThemeActivity themeActivity) { if (themeActivity == null) { //Raise Exception } this.themeActivity = themeActivity; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); themeSupport = new ThemeSupport(this); if (savedInstanceState != null) { currentActivityTheme = savedInstanceState.GetString(STATE_ACTIVITY_THEME, ThemeSupport.THEME_UNDEFINED); } // MUST BE SET BEFORE setContentView themeSupport.updateActivityTheme(); self = this; }