192180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood/* 292180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * Copyright (C) 2010 The Android Open Source Project 392180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * 492180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * Licensed under the Apache License, Version 2.0 (the "License"); 592180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * you may not use this file except in compliance with the License. 692180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * You may obtain a copy of the License at 792180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * 892180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * http://www.apache.org/licenses/LICENSE-2.0 992180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * 1092180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * Unless required by applicable law or agreed to in writing, software 1192180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * distributed under the License is distributed on an "AS IS" BASIS, 1292180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1392180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * See the License for the specific language governing permissions and 1492180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * limitations under the License. 1592180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood */ 1692180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwoodpackage com.android.quicksearchbox.preferences; 1792180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood 1892180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwoodimport com.android.quicksearchbox.R; 1992180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood 2092180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwoodimport android.preference.PreferenceGroup; 2192180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood 2292180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood/** 2392180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood * Fragment for selecting searchable items 2492180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood */ 256b3427a174f1e51555db05aa27b4c14ac99ede72Mathew Inwoodpublic class SearchableItemsFragment extends SettingsFragmentBase { 2692180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood 2792180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood @Override 286b3427a174f1e51555db05aa27b4c14ac99ede72Mathew Inwood protected int getPreferencesResourceId() { 296b3427a174f1e51555db05aa27b4c14ac99ede72Mathew Inwood return R.xml.preferences_searchable_items; 3092180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood } 3192180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood 326b3427a174f1e51555db05aa27b4c14ac99ede72Mathew Inwood @Override 336b3427a174f1e51555db05aa27b4c14ac99ede72Mathew Inwood protected void handlePreferenceGroup(PreferenceGroup screen) { 346b3427a174f1e51555db05aa27b4c14ac99ede72Mathew Inwood getController().handlePreference(screen); 356b3427a174f1e51555db05aa27b4c14ac99ede72Mathew Inwood } 3692180225a3c86c5f9cba04e2a6a7564fc1adeb94Mathew Inwood} 37