disable "Inline suggestions preference" on Android < 11

This commit is contained in:
Philipp Crocoll
2021-11-11 08:57:10 +01:00
parent 5cffec4724
commit d83474d6f6

View File

@@ -356,7 +356,10 @@ namespace keepass2android
if ((int)Android.OS.Build.VERSION.SdkInt < 30)
{
autofillInlineSuggestions.Summary = Activity.GetString(Resource.String.requires_android11);
CheckBoxPreference cbp = autofillInlineSuggestions as CheckBoxPreference;
if (cbp != null)
cbp.Checked = false;
autofillInlineSuggestions.Enabled = false;
}
}
}