tiny fix
This commit is contained in:
		| @@ -149,18 +149,13 @@ namespace Billing | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public class AsyncLazy<T> |     public class AsyncLazy<T> : Lazy<Task<T>> | ||||||
|     { |     { | ||||||
|         private readonly Lazy<Task<T>> instance; |         public AsyncLazy(Func<Task<T>> factory) : base(() => Task.Run(factory)) { } | ||||||
|  |  | ||||||
|         public AsyncLazy(Func<Task<T>> factory) |  | ||||||
|         { |  | ||||||
|             instance = new Lazy<Task<T>>(() => Task.Run(factory)); |  | ||||||
|         } |  | ||||||
|  |  | ||||||
|         public TaskAwaiter<T> GetAwaiter() |         public TaskAwaiter<T> GetAwaiter() | ||||||
|         { |         { | ||||||
|             return instance.Value.GetAwaiter(); |             return Value.GetAwaiter(); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
| @@ -15,7 +15,7 @@ namespace Billing | |||||||
|  |  | ||||||
|         public static (double longitude, double latitude) Gcj02ToWgs84(this (double lon, double lat) position) |         public static (double longitude, double latitude) Gcj02ToWgs84(this (double lon, double lat) position) | ||||||
|         { |         { | ||||||
|             var (longitude, latitude) = Transform(position); |             (double longitude, double latitude) = Transform(position); | ||||||
|             longitude = position.lon * 2d - longitude; |             longitude = position.lon * 2d - longitude; | ||||||
|             latitude = position.lat * 2d - latitude; |             latitude = position.lat * 2d - latitude; | ||||||
|             return (longitude, latitude); |             return (longitude, latitude); | ||||||
|   | |||||||
| @@ -76,7 +76,7 @@ namespace Billing.Store | |||||||
|             } |             } | ||||||
|             try |             try | ||||||
|             { |             { | ||||||
|                 var count = await database.ExecuteScalarAsync<int>("SELECT COUNT(Id) FROM [Category]"); |                 var count = await database.ExecuteScalarAsync<int>("SELECT COUNT(Id) FROM [Account]"); | ||||||
|                 if (count <= 0) |                 if (count <= 0) | ||||||
|                 { |                 { | ||||||
|                     await database.InsertAsync(new Account { Name = Resource.Cash, Icon = "wallet" }); |                     await database.InsertAsync(new Account { Name = Resource.Cash, Icon = "wallet" }); | ||||||
|   | |||||||
| @@ -50,11 +50,11 @@ | |||||||
|     <WarningLevel>4</WarningLevel> |     <WarningLevel>4</WarningLevel> | ||||||
|     <AndroidManagedSymbols>true</AndroidManagedSymbols> |     <AndroidManagedSymbols>true</AndroidManagedSymbols> | ||||||
|     <AndroidUseSharedRuntime>false</AndroidUseSharedRuntime> |     <AndroidUseSharedRuntime>false</AndroidUseSharedRuntime> | ||||||
|     <AotAssemblies>true</AotAssemblies> |     <AotAssemblies>false</AotAssemblies> | ||||||
|     <EnableLLVM>true</EnableLLVM> |     <EnableLLVM>false</EnableLLVM> | ||||||
|     <AndroidEnableProfiledAot>false</AndroidEnableProfiledAot> |     <AndroidEnableProfiledAot>false</AndroidEnableProfiledAot> | ||||||
|     <BundleAssemblies>true</BundleAssemblies> |     <BundleAssemblies>true</BundleAssemblies> | ||||||
|     <AndroidSupportedAbis>arm64-v8a</AndroidSupportedAbis> |     <AndroidSupportedAbis>x86_64;arm64-v8a</AndroidSupportedAbis> | ||||||
|     <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk> |     <EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk> | ||||||
|     <AndroidCreatePackagePerAbi>true</AndroidCreatePackagePerAbi> |     <AndroidCreatePackagePerAbi>true</AndroidCreatePackagePerAbi> | ||||||
|     <AndroidLinkTool>r8</AndroidLinkTool> |     <AndroidLinkTool>r8</AndroidLinkTool> | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.2.318" package="org.tsanie.billing" android:installLocation="auto" android:versionCode="18"> | <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.2.328" package="org.tsanie.billing" android:installLocation="auto" android:versionCode="20"> | ||||||
| 	<uses-sdk android:minSdkVersion="24" android:targetSdkVersion="30" /> | 	<uses-sdk android:minSdkVersion="24" android:targetSdkVersion="30" /> | ||||||
| 	<application android:label="@string/applabel" android:theme="@style/MainTheme" android:requestLegacyExternalStorage="true"></application> | 	<application android:label="@string/applabel" android:theme="@style/MainTheme" android:requestLegacyExternalStorage="true"></application> | ||||||
| 	<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | 	<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ namespace Billing.Droid | |||||||
| { | { | ||||||
| 	 | 	 | ||||||
| 	 | 	 | ||||||
| 	[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] | 	[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "12.2.0.155")] | ||||||
| 	public partial class Resource | 	public partial class Resource | ||||||
| 	{ | 	{ | ||||||
| 		 | 		 | ||||||
|   | |||||||
| @@ -80,9 +80,9 @@ | |||||||
| 		</dict> | 		</dict> | ||||||
| 	</array> | 	</array> | ||||||
| 	<key>CFBundleVersion</key> | 	<key>CFBundleVersion</key> | ||||||
| 	<string>19</string> | 	<string>20</string> | ||||||
| 	<key>CFBundleShortVersionString</key> | 	<key>CFBundleShortVersionString</key> | ||||||
| 	<string>1.2.318</string> | 	<string>1.2.328</string> | ||||||
| 	<key>LSApplicationQueriesSchemes</key> | 	<key>LSApplicationQueriesSchemes</key> | ||||||
| 	<array> | 	<array> | ||||||
| 		<string>mailto</string> | 		<string>mailto</string> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user