Support apply override feature in SupportPreferenceController

- Let SupportPreferenceController call SupportFeatureProvider#applyOverrides to override Support preference.

Bug: 397691102
Change-Id: I16fefe3058d5f3f318ed4a5aa6aa4868012be505
Test: MANUAL
Flag: EXEMPT no-op new APIs for partner override
This commit is contained in:
Nick Croll
2025-03-03 19:01:35 -08:00
parent 43e0a04580
commit 86626c886a
3 changed files with 41 additions and 0 deletions

View File

@@ -17,6 +17,10 @@
package com.android.settings.overlay;
import android.app.Activity;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.preference.Preference;
/**
* Feature provider for support tab.
@@ -29,4 +33,13 @@ public interface SupportFeatureProvider {
* @param activity Calling activity.
*/
void startSupport(Activity activity);
/**
* Applies overrides to the support preference, if needed.
*
* @param context Preference controller context.
* @param pref The support preference.
*/
default void applyOverrides(@NonNull Context context, @NonNull Preference pref) {
}
}