Correct the naming for homepage preference
- Have a consistent naming rule for homepage. - Make the font family of title can be modified by system. Test: See the screen, and font family of title is correct. Bug: 177213699 Change-Id: I8e3ebbf06a8c1849956100c8d2825f98ad251b37
This commit is contained in:
@@ -24,24 +24,24 @@ import androidx.preference.Preference;
|
||||
import com.android.settings.R;
|
||||
|
||||
/** A customized layout for homepage preference. */
|
||||
public class HomePagePreference extends Preference {
|
||||
public class HomepagePreference extends Preference {
|
||||
|
||||
public HomePagePreference(Context context) {
|
||||
public HomepagePreference(Context context) {
|
||||
super(context);
|
||||
setLayoutResource(R.layout.homepage_preference);
|
||||
}
|
||||
|
||||
public HomePagePreference(Context context, AttributeSet attrs) {
|
||||
public HomepagePreference(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
setLayoutResource(R.layout.homepage_preference);
|
||||
}
|
||||
|
||||
public HomePagePreference(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
public HomepagePreference(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
this(context, attrs, defStyleAttr, /* defStyleRes= */ 0);
|
||||
setLayoutResource(R.layout.homepage_preference);
|
||||
}
|
||||
|
||||
public HomePagePreference(Context context, AttributeSet attrs,
|
||||
public HomepagePreference(Context context, AttributeSet attrs,
|
||||
int defStyleAttr, int defStyleRes) {
|
||||
super(context, attrs, defStyleAttr, defStyleRes);
|
||||
setLayoutResource(R.layout.homepage_preference);
|
@@ -30,7 +30,7 @@ import com.android.settings.R;
|
||||
import com.android.settingslib.RestrictedPreferenceHelper;
|
||||
|
||||
/** Homepage preference that can be disabled by a device admin using a user restriction. */
|
||||
public class RestrictedHomepagePreference extends HomePagePreference {
|
||||
public class RestrictedHomepagePreference extends HomepagePreference {
|
||||
private RestrictedPreferenceHelper mHelper;
|
||||
|
||||
public RestrictedHomepagePreference(Context context, AttributeSet attrs,
|
||||
|
Reference in New Issue
Block a user