From 81d972a462b939a554514cbf0977051f3ec0d64d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 28 May 2019 23:03:03 -0400 Subject: [PATCH] thread policy --- src/Android/MainActivity.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Android/MainActivity.cs b/src/Android/MainActivity.cs index de238c41f..ec3e33f0f 100644 --- a/src/Android/MainActivity.cs +++ b/src/Android/MainActivity.cs @@ -41,6 +41,9 @@ namespace Bit.Droid _lockAlarmPendingIntent = PendingIntent.GetBroadcast(this, 0, alarmIntent, PendingIntentFlags.UpdateCurrent); + var policy = new StrictMode.ThreadPolicy.Builder().PermitAll().Build(); + StrictMode.SetThreadPolicy(policy); + _deviceActionService = ServiceContainer.Resolve("deviceActionService"); _messagingService = ServiceContainer.Resolve("messagingService"); _broadcasterService = ServiceContainer.Resolve("broadcasterService");