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:
@@ -24,8 +24,7 @@
|
|||||||
android:id="@+id/support_disclaimer_text"
|
android:id="@+id/support_disclaimer_text"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingBottom="24dp"
|
android:paddingBottom="24dp"/>
|
||||||
android:text="@string/support_disclaimer_content"/>
|
|
||||||
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
android:id="@+id/support_disclaimer_do_not_show_again"
|
android:id="@+id/support_disclaimer_do_not_show_again"
|
||||||
|
@@ -7669,9 +7669,6 @@
|
|||||||
<!-- Dialog title displayed before initiating real time support [CHAR LIMIT=80]-->
|
<!-- Dialog title displayed before initiating real time support [CHAR LIMIT=80]-->
|
||||||
<string name="support_disclaimer_title">Send system information</string>
|
<string name="support_disclaimer_title">Send system information</string>
|
||||||
|
|
||||||
<!-- Dialog content displayed before initiating real time support [CHAR LIMIT=NONE]-->
|
|
||||||
<string name="support_disclaimer_content" product="default">To help address your issue quickly, we need system information for diagnosis.</string>
|
|
||||||
|
|
||||||
<!-- Checkbox text, when checked dialog will not show again [CHAR LIMIT=80] -->
|
<!-- Checkbox text, when checked dialog will not show again [CHAR LIMIT=80] -->
|
||||||
<string name="support_disclaimer_do_not_show">Do not show again</string>
|
<string name="support_disclaimer_do_not_show">Do not show again</string>
|
||||||
|
|
||||||
|
@@ -137,4 +137,9 @@ public interface SupportFeatureProvider {
|
|||||||
* Returns an intent that will launch the tips and tricks UI.
|
* Returns an intent that will launch the tips and tricks UI.
|
||||||
*/
|
*/
|
||||||
Intent getTipsAndTricksIntent(Context context);
|
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);
|
.inflate(R.layout.support_disclaimer_content, null);
|
||||||
final TextView disclaimer = (TextView) content.findViewById(R.id.support_disclaimer_text);
|
final TextView disclaimer = (TextView) content.findViewById(R.id.support_disclaimer_text);
|
||||||
disclaimer.setMovementMethod(LinkMovementMethod.getInstance());
|
disclaimer.setMovementMethod(LinkMovementMethod.getInstance());
|
||||||
|
final Activity activity = getActivity();
|
||||||
|
final SupportFeatureProvider supportFeatureProvider =
|
||||||
|
FeatureFactory.getFactory(activity).getSupportFeatureProvider(activity);
|
||||||
|
disclaimer.setText(supportFeatureProvider.getDisclaimerString());
|
||||||
stripUnderlines((Spannable) disclaimer.getText());
|
stripUnderlines((Spannable) disclaimer.getText());
|
||||||
return builder
|
return builder
|
||||||
.setView(content)
|
.setView(content)
|
||||||
|
Reference in New Issue
Block a user