Example #1
0
 public void Shutdown()
 {
     if (Build.VERSION.SdkInt >= BuildVersionCodes.IceCreamSandwich && m_Cache != null)
     {
         ResponseCacheIcs.Close(m_Cache);
     }
 }
Example #2
0
 private void InstallCacheIfNeeded(Context context)
 {
     if (m_Cache == null)
     {
         try
         {
             lock (s_Lock)
             {
                 if (m_Cache == null)
                 {
                     m_Cache = ResponseCacheIcs.Install(context);
                 }
             }
         }
         catch (IOException)
         {
             // Ignored
         }
     }
 }