1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-13 14:53:18 +00:00

added broadcast receiver for when android updated

This commit is contained in:
Kyle Spearrin
2017-07-28 17:21:39 -04:00
parent 7490ba3179
commit e4d9dfc128
6 changed files with 44 additions and 11 deletions

View File

@@ -95,7 +95,7 @@ namespace Bit.Android.Services
var pm = CrossCurrentActivity.Current.Activity.PackageManager;
var intent = new Intent(Intent.ActionView);
intent.SetType(mimeType);
var activities = pm.QueryIntentActivities(intent, global::Android.Content.PM.PackageInfoFlags.MatchDefaultOnly);
var activities = pm.QueryIntentActivities(intent, PackageInfoFlags.MatchDefaultOnly);
return (activities?.Count ?? 0) > 0;
}