24 lines
762 B
C#
24 lines
762 B
C#
|
using System.Collections.Generic;
|
|||
|
using Android.App;
|
|||
|
using Android.Content;
|
|||
|
using Bit.App.Utilities;
|
|||
|
using Bit.Core.Abstractions;
|
|||
|
using Bit.Core.Utilities;
|
|||
|
using Bit.Droid.Utilities;
|
|||
|
|
|||
|
namespace Bit.Droid.Receivers
|
|||
|
{
|
|||
|
[BroadcastReceiver(Name = "com.x8bit.bitwarden.RestrictionsChangedReceiver", Exported = false)]
|
|||
|
[IntentFilter(new[] { Intent.ActionApplicationRestrictionsChanged })]
|
|||
|
public class RestrictionsChangedReceiver : BroadcastReceiver
|
|||
|
{
|
|||
|
public async override void OnReceive(Context context, Intent intent)
|
|||
|
{
|
|||
|
if(intent.Action == Intent.ActionApplicationRestrictionsChanged)
|
|||
|
{
|
|||
|
await AndroidHelpers.SetPreconfiguredRestrictionSettingsAsync(context);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|