mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
thread policy
This commit is contained in:
parent
bfeddd6d99
commit
81d972a462
1 changed files with 3 additions and 0 deletions
|
@ -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<IDeviceActionService>("deviceActionService");
|
||||
_messagingService = ServiceContainer.Resolve<IMessagingService>("messagingService");
|
||||
_broadcasterService = ServiceContainer.Resolve<IBroadcasterService>("broadcasterService");
|
||||
|
|
Loading…
Reference in a new issue