Prevent finding debug options

This commit is contained in:
M66B
2021-05-13 09:46:38 +02:00
parent 1286126ace
commit 2f9c2dc2ba
4 changed files with 16 additions and 11 deletions

View File

@@ -278,7 +278,9 @@ public class FragmentOptions extends FragmentBase {
}
private int getSuggestions(String query, int id, int tab, String title, View view, MatrixCursor cursor) {
if (view instanceof ViewGroup) {
if (view == null || "debug".equals(view.getTag()))
return id;
else if (view instanceof ViewGroup) {
ViewGroup group = (ViewGroup) view;
for (int i = 0; i <= group.getChildCount(); i++)
id = getSuggestions(query, id, tab, title, group.getChildAt(i), cursor);