blob: 9cb3bf4ef84c105e2dc39474a789dbc4b2cac9e3 [file] [log] [blame]
Jason Monkf9402322015-06-10 10:02:59 -04001/*
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
17package com.android.settings;
18
Fan Zhang31b21002019-01-16 13:49:47 -080019import android.app.settings.SettingsEnums;
Jason Monkf9402322015-06-10 10:02:59 -040020
Yanting_Yang42513af2018-04-11 21:21:17 +080021import com.android.settings.dashboard.DashboardFragment;
Jason Monkf9402322015-06-10 10:02:59 -040022import com.android.settings.search.BaseSearchIndexProvider;
Tony Mantler0fcd6cb2018-03-26 15:17:25 -070023import com.android.settingslib.search.SearchIndexable;
Jason Monkf9402322015-06-10 10:02:59 -040024
Tony Mantler0fcd6cb2018-03-26 15:17:25 -070025@SearchIndexable
Yanting_Yang42513af2018-04-11 21:21:17 +080026public class LegalSettings extends DashboardFragment {
Jason Monkf9402322015-06-10 10:02:59 -040027
Yanting_Yang42513af2018-04-11 21:21:17 +080028 private static final String TAG = "LegalSettings";
Jason Monkf9402322015-06-10 10:02:59 -040029
30 @Override
Fan Zhang65076132016-08-08 10:25:13 -070031 public int getMetricsCategory() {
Fan Zhang31b21002019-01-16 13:49:47 -080032 return SettingsEnums.ABOUT_LEGAL_SETTINGS;
Jason Monkf9402322015-06-10 10:02:59 -040033 }
34
Yanting_Yang42513af2018-04-11 21:21:17 +080035 @Override
36 protected String getLogTag() {
37 return TAG;
Ben Line4ca92a2017-12-12 16:44:53 -080038 }
39
Yanting_Yang42513af2018-04-11 21:21:17 +080040 @Override
41 protected int getPreferenceScreenResId() {
Raff Tsai966fa012019-09-25 11:19:06 +080042 return R.xml.about_legal;
Yanting_Yang42513af2018-04-11 21:21:17 +080043 }
Jason Monkf9402322015-06-10 10:02:59 -040044
Raff Tsaiac3e0d02019-09-19 17:06:45 +080045 public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
46 new BaseSearchIndexProvider(R.xml.about_legal);
Jason Monkf9402322015-06-10 10:02:59 -040047}