don't show "Third party app" in Android 11+ (doesn't work due to file access permissions, avoids confusion). Closes https://github.com/PhilippC/keepass2android/issues/1468, closes https://github.com/PhilippC/keepass2android/issues/1606

This commit is contained in:
Philipp Crocoll
2021-11-15 11:26:58 +01:00
parent 45df2d6605
commit afbef4272c

View File

@@ -77,9 +77,12 @@ namespace keepass2android
{
_displayedProtocolIds.Remove("file");
}
if (context.Intent.GetBooleanExtra(AllowThirdPartyAppGet, false))
//starting with Android 11, we don't show the Third party app option. Due to restricted permissions,
//this no longer works.
if ((int)Build.VERSION.SdkInt < 30)
if (context.Intent.GetBooleanExtra(AllowThirdPartyAppGet, false))
_displayedProtocolIds.Add("androidget");
if (context.Intent.GetBooleanExtra(AllowThirdPartyAppSend, false))
_displayedProtocolIds.Add("androidsend");