fix for activity exporting and workaround for task affinity (#1408)

This commit is contained in:
Matt Portune 2021-05-19 15:55:16 -04:00 committed by GitHub
parent 570edb4319
commit e61bcd2785
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -27,6 +27,7 @@ namespace Bit.Droid
Icon = "@mipmap/ic_launcher", Icon = "@mipmap/ic_launcher",
Theme = "@style/LaunchTheme", Theme = "@style/LaunchTheme",
MainLauncher = true, MainLauncher = true,
TaskAffinity = "",
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation |
ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden |
ConfigChanges.Navigation)] ConfigChanges.Navigation)]

View file

@ -3,7 +3,10 @@ using Android.Content.PM;
namespace Bit.Droid namespace Bit.Droid
{ {
[Activity(NoHistory = true, LaunchMode = LaunchMode.SingleTop)] [Activity(
Exported = false,
NoHistory = true,
LaunchMode = LaunchMode.SingleTop)]
[IntentFilter(new[] { Android.Content.Intent.ActionView }, [IntentFilter(new[] { Android.Content.Intent.ActionView },
Categories = new[] { Android.Content.Intent.CategoryDefault, Android.Content.Intent.CategoryBrowsable }, Categories = new[] { Android.Content.Intent.CategoryDefault, Android.Content.Intent.CategoryBrowsable },
DataScheme = "bitwarden")] DataScheme = "bitwarden")]