Merge branch 'master' into dev/jela/maps

This commit is contained in:
Jérôme Laban 2018-10-09 08:54:39 -04:00 коммит произвёл GitHub
Родитель 20ce9e09e1 70b6548d25
Коммит 774eb5697b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 15 добавлений и 23 удалений

Просмотреть файл

@ -1,32 +1,16 @@
using Android.App;
using Android.Content;
using Android.Content;
using Android.Graphics;
using Android.OS;
using Android.Provider;
using Android.Runtime;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Uno.UI;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Popups;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
namespace AndroidCustomCamera
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class MainPage : Page
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class MainPage : Page
{
public MainPage()
{
@ -37,9 +21,17 @@ namespace AndroidCustomCamera
private void Current_ActivityResult(object sender, BaseActivity.ActivityResultEventArgs e)
{
var bitmap = (Bitmap)e.Data.Extras.Get("data");
image.Source = bitmap;
if (e.Data != null)
{
var bitmap = (Bitmap)e.Data.Extras.Get("data");
image.Source = bitmap;
}
else
{
image.Source = null;
}
}
public void button_Click(object sender, RoutedEventArgs e)