Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c5bc0ab authored by jeffreyhuang's avatar jeffreyhuang
Browse files

Remove a second unwanted search result

 - Remove Security and location from the search query for lock screen message

Change-Id: Ifa8985c78b403867377cca351e11b3f58d5c60f2
Fixes: 65492727
Test: Manual using settings app
parent a414573d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -39,6 +39,8 @@ public class ScreenLockSettings extends DashboardFragment

    private static final String TAG = "ScreenLockSettings";

    private static final String KEY_LOCK_SCREEN_TITLE = "security_settings_password_sub_screen";

    private static final int MY_USER_ID = UserHandle.myUserId();
    private LockPatternUtils mLockPatternUtils;

@@ -102,5 +104,12 @@ public class ScreenLockSettings extends DashboardFragment
                    return buildPreferenceControllers(context, null /* parent */,
                            null /* lifecycle */, new LockPatternUtils(context));
                }

                @Override
                public List<String> getNonIndexableKeys(Context context) {
                    final List<String> keys = super.getNonIndexableKeys(context);
                    keys.add(KEY_LOCK_SCREEN_TITLE);
                    return keys;
                }
            };
}