示例#1
0
        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);
        }
示例#2
0
 public override void OnSaveInstanceState(Bundle outState)
 {
     FileCacheHelper.SaveCacheFile(
         ContentActivity.CacheCatagory,
         string.Format(MainFragmentStatusCacheFile, ((ContentActivity)Activity).AsyncTaskActivityGUID),
         JsonConvert.SerializeObject(MainFragmentStatus));
     base.OnSaveInstanceState(outState);
 }
示例#3
0
        public static void SetToolbarHeight(int height)
        {
            if (tbParams == null)
            {
                tbParams = new ToolbarParams();
            }

            tbParams.Height = height;

            FileCacheHelper.SaveCacheFile(
                CacheCatagory,
                CacheFile,
                JsonConvert.SerializeObject(tbParams));
        }