Jason Monk | f940232 | 2015-06-10 10:02:59 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package com.android.settings; |
| 18 | |
Fan Zhang | 31b2100 | 2019-01-16 13:49:47 -0800 | [diff] [blame] | 19 | import android.app.settings.SettingsEnums; |
Jason Monk | f940232 | 2015-06-10 10:02:59 -0400 | [diff] [blame] | 20 | |
Yanting_Yang | 42513af | 2018-04-11 21:21:17 +0800 | [diff] [blame] | 21 | import com.android.settings.dashboard.DashboardFragment; |
Jason Monk | f940232 | 2015-06-10 10:02:59 -0400 | [diff] [blame] | 22 | import com.android.settings.search.BaseSearchIndexProvider; |
Tony Mantler | 0fcd6cb | 2018-03-26 15:17:25 -0700 | [diff] [blame] | 23 | import com.android.settingslib.search.SearchIndexable; |
Jason Monk | f940232 | 2015-06-10 10:02:59 -0400 | [diff] [blame] | 24 | |
Tony Mantler | 0fcd6cb | 2018-03-26 15:17:25 -0700 | [diff] [blame] | 25 | @SearchIndexable |
Yanting_Yang | 42513af | 2018-04-11 21:21:17 +0800 | [diff] [blame] | 26 | public class LegalSettings extends DashboardFragment { |
Jason Monk | f940232 | 2015-06-10 10:02:59 -0400 | [diff] [blame] | 27 | |
Yanting_Yang | 42513af | 2018-04-11 21:21:17 +0800 | [diff] [blame] | 28 | private static final String TAG = "LegalSettings"; |
Jason Monk | f940232 | 2015-06-10 10:02:59 -0400 | [diff] [blame] | 29 | |
| 30 | @Override |
Fan Zhang | 6507613 | 2016-08-08 10:25:13 -0700 | [diff] [blame] | 31 | public int getMetricsCategory() { |
Fan Zhang | 31b2100 | 2019-01-16 13:49:47 -0800 | [diff] [blame] | 32 | return SettingsEnums.ABOUT_LEGAL_SETTINGS; |
Jason Monk | f940232 | 2015-06-10 10:02:59 -0400 | [diff] [blame] | 33 | } |
| 34 | |
Yanting_Yang | 42513af | 2018-04-11 21:21:17 +0800 | [diff] [blame] | 35 | @Override |
| 36 | protected String getLogTag() { |
| 37 | return TAG; |
Ben Lin | e4ca92a | 2017-12-12 16:44:53 -0800 | [diff] [blame] | 38 | } |
| 39 | |
Yanting_Yang | 42513af | 2018-04-11 21:21:17 +0800 | [diff] [blame] | 40 | @Override |
| 41 | protected int getPreferenceScreenResId() { |
Raff Tsai | 966fa01 | 2019-09-25 11:19:06 +0800 | [diff] [blame] | 42 | return R.xml.about_legal; |
Yanting_Yang | 42513af | 2018-04-11 21:21:17 +0800 | [diff] [blame] | 43 | } |
Jason Monk | f940232 | 2015-06-10 10:02:59 -0400 | [diff] [blame] | 44 | |
Raff Tsai | ac3e0d0 | 2019-09-19 17:06:45 +0800 | [diff] [blame] | 45 | public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER = |
| 46 | new BaseSearchIndexProvider(R.xml.about_legal); |
Jason Monk | f940232 | 2015-06-10 10:02:59 -0400 | [diff] [blame] | 47 | } |