Support dialog disclaimer text now appears properly
The string override between Settings and SettigsGoogle was not properly distinguishing, and was defaulting to the AOSP version. Bug: 31827726 Test: Manual Change-Id: Iebd8681fb4f040e956f05fb0f5d96deae9eec26f
This commit is contained in:
@@ -137,4 +137,9 @@ public interface SupportFeatureProvider {
|
||||
* Returns an intent that will launch the tips and tricks UI.
|
||||
*/
|
||||
Intent getTipsAndTricksIntent(Context context);
|
||||
|
||||
/**
|
||||
* Returns the string for the disclaimer in the Support dialog
|
||||
*/
|
||||
String getDisclaimerString();
|
||||
}
|
||||
|
@@ -68,6 +68,10 @@ public final class SupportDisclaimerDialogFragment extends DialogFragment implem
|
||||
.inflate(R.layout.support_disclaimer_content, null);
|
||||
final TextView disclaimer = (TextView) content.findViewById(R.id.support_disclaimer_text);
|
||||
disclaimer.setMovementMethod(LinkMovementMethod.getInstance());
|
||||
final Activity activity = getActivity();
|
||||
final SupportFeatureProvider supportFeatureProvider =
|
||||
FeatureFactory.getFactory(activity).getSupportFeatureProvider(activity);
|
||||
disclaimer.setText(supportFeatureProvider.getDisclaimerString());
|
||||
stripUnderlines((Spannable) disclaimer.getText());
|
||||
return builder
|
||||
.setView(content)
|
||||
|
Reference in New Issue
Block a user