diff --git a/Diplomatic.Android/Classes/Picture_Droid.cs b/Diplomatic.Android/Classes/Picture_Droid.cs
index da98bc9..5f60f77 100644
--- a/Diplomatic.Android/Classes/Picture_Droid.cs
+++ b/Diplomatic.Android/Classes/Picture_Droid.cs
@@ -21,12 +21,13 @@ public void SavePictureToDisk(string filename, byte[] imageArray)
{
// Write file to the android disk
System.IO.File.WriteAllBytes(FilePath, imageArray);
+
// Now it needs to be added to image gallery
var mediaScanIntent = new Intent(Intent.ActionMediaScannerScanFile);
mediaScanIntent.SetData(Android.Net.Uri.FromFile(new File(FilePath)));
- Xamarin.Forms.Forms.Context.SendBroadcast(mediaScanIntent);
+ Android.App.Application.Context.SendBroadcast(mediaScanIntent);
}
- catch(System.Exception e)
+ catch (System.Exception e)
{
System.Console.WriteLine(e.ToString());
}
diff --git a/Diplomatic.iOS/Classes/Picture_iOS.cs b/Diplomatic.iOS/Classes/Picture_iOS.cs
index 8b86fd7..fc60a35 100644
--- a/Diplomatic.iOS/Classes/Picture_iOS.cs
+++ b/Diplomatic.iOS/Classes/Picture_iOS.cs
@@ -9,7 +9,6 @@ namespace Diplomatic.iOS.Classes
{
public class Picture_iOS : IPicture
{
-
public void SavePictureToDisk(string filename, byte[] imageArray)
{
var Img = new UIImage(NSData.FromArray(imageArray));
@@ -18,7 +17,6 @@ public void SavePictureToDisk(string filename, byte[] imageArray)
if (error != null)
{
Console.WriteLine(error);
- throw new Exception("Yeeeeeeeeeeeeeeeeeet");
}
});
}
diff --git a/Diplomatic.iOS/Info.plist b/Diplomatic.iOS/Info.plist
index c0b2464..70be03a 100644
--- a/Diplomatic.iOS/Info.plist
+++ b/Diplomatic.iOS/Info.plist
@@ -21,7 +21,7 @@
UIInterfaceOrientationLandscapeRight
MinimumOSVersion
- 11.3
+ 11.0
CFBundleDisplayName
Diplomatic
CFBundleIdentifier
@@ -38,7 +38,5 @@
Assets.xcassets/LaunchImage.launchimage
NSPhotoLibraryAddUsageDescription
- NSPhotoLibraryUsageDescription
-