Merge "Support highlightable Settings homepage menu for 2-pane" into sc-v2-dev am: 9b1f593773
am: de33f1224b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15785736 Change-Id: Ic375f9e19b1f6dbc6f70cedaa770c133fb96f652
This commit is contained in:
@@ -1223,6 +1223,14 @@ public final class Utils extends com.android.settingslib.Utils {
|
||||
return getColorAttrDefaultColor(context, android.R.attr.textColorSecondary);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the highlight color of homepage preference icons.
|
||||
*/
|
||||
@ColorInt
|
||||
public static int getHomepageIconColorHighlight(Context context) {
|
||||
return getColorAttrDefaultColor(context, android.R.attr.textColorSecondaryInverse);
|
||||
}
|
||||
|
||||
public static boolean isProviderModelEnabled(Context context) {
|
||||
return FeatureFlagUtils.isEnabled(context, FeatureFlagUtils.SETTINGS_PROVIDER_MODEL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user