workaround for error with Thai calendar settings (https://bugzilla.xamarin.com/show_bug.cgi?id=59077), fixes #327
This commit is contained in:
		| @@ -860,8 +860,20 @@ namespace keepass2android | ||||
|  | ||||
|         public static readonly Kp2aApp Kp2a = new Kp2aApp(); | ||||
|  | ||||
| 		public override void OnCreate() { | ||||
| 			base.OnCreate(); | ||||
| 	    private static void InitThaiCalendarCrashFix() | ||||
| 	    { | ||||
| 	        var localeIdentifier = Java.Util.Locale.Default.ToString(); | ||||
| 	        if (localeIdentifier == "th_TH") | ||||
| 	        { | ||||
| 	            new System.Globalization.ThaiBuddhistCalendar(); | ||||
| 	        } | ||||
| 	    } | ||||
|  | ||||
|         public override void OnCreate() | ||||
|         { | ||||
|             InitThaiCalendarCrashFix(); | ||||
|  | ||||
|             base.OnCreate(); | ||||
|  | ||||
| 			Kp2aLog.Log("Creating application "+PackageName+". Version=" + PackageManager.GetPackageInfo(PackageName, 0).VersionCode); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Crocoll
					Philipp Crocoll