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

Commit 70e2ed1b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Hide emergency setting from "Search settings"" into tm-dev

parents 44638293 8f1e3fec
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -66,5 +66,10 @@ public class EmergencyDashboardFragment extends DashboardFragment {
    }

    public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
            new BaseSearchIndexProvider(R.xml.emergency_settings);
            new BaseSearchIndexProvider(R.xml.emergency_settings) {
                @Override
                protected boolean isPageSearchEnabled(Context context) {
                    return context.getResources().getBoolean(R.bool.config_show_emergency_settings);
                }
            };
}