|
@@ -11,6 +11,7 @@ using Xamarin.Essentials;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms.Xaml;
|
|
using Xamarin.Forms.Xaml;
|
|
using XF.Material.Forms.UI.Dialogs;
|
|
using XF.Material.Forms.UI.Dialogs;
|
|
|
|
+using PRSSecurity = InABox.Core.Security;
|
|
|
|
|
|
namespace comal.timesheets
|
|
namespace comal.timesheets
|
|
{
|
|
{
|
|
@@ -80,7 +81,7 @@ namespace comal.timesheets
|
|
if (doc.FileName.EndsWith("pdf") || doc.FileName.EndsWith("pdf") || doc.FileName.EndsWith("pdf"))
|
|
if (doc.FileName.EndsWith("pdf") || doc.FileName.EndsWith("pdf") || doc.FileName.EndsWith("pdf"))
|
|
{
|
|
{
|
|
byte[] data = table2.Rows.First().Get<Document, byte[]>(x => x.Data);
|
|
byte[] data = table2.Rows.First().Get<Document, byte[]>(x => x.Data);
|
|
- if (Device.RuntimePlatform.Equals(Device.Android) && Security.IsAllowed<CanOpenMobileNativePDFViewer>())
|
|
|
|
|
|
+ if (Device.RuntimePlatform.Equals(Device.Android) && PRSSecurity.IsAllowed<CanOpenMobileNativePDFViewer>())
|
|
OpenNativeViewer(doc.FileName, data);
|
|
OpenNativeViewer(doc.FileName, data);
|
|
else
|
|
else
|
|
ShowPDF(data);
|
|
ShowPDF(data);
|