protected override void OnSaveInstanceState(Bundle outState) { FileCacheHelper.SaveCacheFile( CacheCatagory, string.Format(NavigationCacheFile, asyncTaskActivityGUID), NavigationManager.Instance.SerializeRecords()); if (DataCache.INSTATNCE.IndexList == null) { FileCacheHelper.DeleteCacheFile( CacheCatagory, string.Format(IndexCacheFile, asyncTaskActivityGUID)); } else { FileCacheHelper.SaveCacheFile( CacheCatagory, string.Format(IndexCacheFile, asyncTaskActivityGUID), JsonConvert.SerializeObject(DataCache.INSTATNCE.IndexList)); } outState.PutString(AsyncUIOperationRepeater.ASYNC_ACTIVITY_GUID, asyncTaskActivityGUID); Android.Util.Log.Info("DBG", "ContentActivity[" + asyncTaskActivityGUID + "] save state."); base.OnSaveInstanceState(outState); }
public override void OnSaveInstanceState(Bundle outState) { FileCacheHelper.SaveCacheFile( ContentActivity.CacheCatagory, string.Format(MainFragmentStatusCacheFile, ((ContentActivity)Activity).AsyncTaskActivityGUID), JsonConvert.SerializeObject(MainFragmentStatus)); base.OnSaveInstanceState(outState); }
public static void SetToolbarHeight(int height) { if (tbParams == null) { tbParams = new ToolbarParams(); } tbParams.Height = height; FileCacheHelper.SaveCacheFile( CacheCatagory, CacheFile, JsonConvert.SerializeObject(tbParams)); }