Revert "Revert "Support highlightable Settings homepage menu for 2-pane"" am: 29a09e55ba
am: 235353a131
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16038013 Change-Id: I4c526a0854fbe64efb834bf993c1e461b7993cad
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