Revert "Revert "Support highlightable Settings homepage menu for 2-pane""
This reverts commit 096c090b805acbed1ea5a45f584ff5a24bd2fa3b.
Reason for revert: crash is fixed in this change
Bug: 202510128
Test: manual, build
Change-Id: Ifff8d58cfdcf43e123b11dee308665b2617cb4b3
diff --git a/src/com/android/settings/Utils.java b/src/com/android/settings/Utils.java
index 72bfa11..6886154 100644
--- a/src/com/android/settings/Utils.java
+++ b/src/com/android/settings/Utils.java
@@ -1223,6 +1223,14 @@
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);
}