Files
app_Settings/src/com/android/settings/localepicker/TermsOfAddressNeutralController.java
Zoey Chen 7dc497dfcc [ToA] Metrics in Settings
Bug: 323462103
Test: atest TermsOfAddressNotSpecifiedControllerTest
Test: atest TermsOfAddressNeutralControllerTest
Test: atest TermsOfAddressMasculineControllerTest
Test: atest TermsOfAddressFeminineControllerTest
Change-Id: I09c3ad4c92275ba48b810b1971a4e98e54e5136d
2024-02-07 05:46:16 +00:00

46 lines
1.3 KiB
Java

/**
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.settings.localepicker;
import android.app.settings.SettingsEnums;
import android.content.Context;
import android.content.res.Configuration;
public class TermsOfAddressNeutralController extends TermsOfAddressBaseController {
private static final String KEY_NEUTRAL = "key_terms_of_address_neutral";
public TermsOfAddressNeutralController(Context context, String preferenceKey) {
super(context, preferenceKey);
}
@Override
public String getPreferenceKey() {
return KEY_NEUTRAL;
}
@Override
protected int getMetricsActionKey() {
return 0;
}
@Override
protected int getGrammaticalGenderType() {
return Configuration.GRAMMATICAL_GENDER_NEUTRAL;
}
}