wxr
2024-08-27 395d0479c9eab2b7a8f7be01e643b80224228df7
Shared.Droid.JPush/HmsLazyInputStream.cs
@@ -1,28 +1,28 @@
using Android.Content;
using Android.Util;
using System;
using System.IO;
using Huawei.Agconnect.Config;
//using Android.Content;
//using Android.Util;
//using System;
//using System.IO;
//using Huawei.Agconnect.Config;
namespace Shared.Droid.JPush
{
    class HmsLazyInputStream : LazyInputStream
    {
        public HmsLazyInputStream(Context context) : base(context)
        {
        }
//namespace Shared.Droid.JPush
//{
//    class HmsLazyInputStream : LazyInputStream
//    {
//        public HmsLazyInputStream(Context context) : base(context)
//        {
//        }
        public override Stream Get(Context context)
        {
            try
            {
                return context.Assets.Open("agconnect-services.json");
            }
            catch (Exception e)
            {
                Log.Info(e.ToString(), "Can't open agconnect file");
                return null;
            }
        }
    }
}
//        public override Stream Get(Context context)
//        {
//            try
//            {
//                return context.Assets.Open("agconnect-services.json");
//            }
//            catch (Exception e)
//            {
//                Log.Info(e.ToString(), "Can't open agconnect file");
//                return null;
//            }
//        }
//    }
//}