public override void OnCreate(Bundle savedInstanceState) { var categoryId = Arguments.GetString(Category.TAG); category = TopekaDatabaseHelper.GetCategoryWith(Activity, categoryId); base.OnCreate(savedInstanceState); }
void Populate(string categoryId) { if (string.IsNullOrEmpty(categoryId)) { Log.Warn(Tag, "Didn't find a category. Finishing"); Finish(); } var category = TopekaDatabaseHelper.GetCategoryWith(this, categoryId); SetTheme(category.Theme.StyleId); InitLayout(category.Id); InitToolbar(category); }