Merge "Set suw description textview to fixed id" into qt-dev
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message"
|
||||
android:id="@+id/sud_layout_description"
|
||||
style="@style/SudDescription.Glif"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@@ -70,7 +70,7 @@
|
||||
android:paddingRight="0dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message"
|
||||
android:id="@+id/sud_layout_description"
|
||||
style="@style/SudDescription.Glif"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@@ -28,7 +28,7 @@
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/detailsText"
|
||||
android:id="@+id/sud_layout_description"
|
||||
style="@style/SudDescription.Glif"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@@ -48,7 +48,7 @@
|
||||
|
||||
<TextView
|
||||
style="@style/SudDescription.Glif"
|
||||
android:id="@+id/detailsText"
|
||||
android:id="@+id/sud_layout_description"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="?attr/sudMarginSides"
|
||||
|
@@ -30,7 +30,7 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/encryption_message"
|
||||
android:id="@+id/sud_layout_description"
|
||||
style="@style/SudDescription.Glif"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
@@ -33,7 +33,7 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.setupdesign.view.RichTextView
|
||||
android:id="@+id/description_text"
|
||||
android:id="@+id/sud_layout_description"
|
||||
style="@style/SudDescription.Glif"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@@ -38,7 +38,7 @@
|
||||
|
||||
<TextView
|
||||
style="@style/SudDescription.Glif"
|
||||
android:id="@+id/start_message"
|
||||
android:id="@+id/sud_layout_description"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minLines="3"
|
||||
|
@@ -39,6 +39,7 @@
|
||||
|
||||
<TextView
|
||||
style="@style/SudDescription.Glif"
|
||||
android:id="@+id/sud_layout_description"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/sud_description_glif_margin_top"
|
||||
|
@@ -31,7 +31,7 @@
|
||||
android:clipChildren="false">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message"
|
||||
android:id="@+id/sud_layout_description"
|
||||
style="@style/SudDescription.Glif"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@@ -31,7 +31,7 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.setupdesign.view.RichTextView
|
||||
android:id="@+id/description_text"
|
||||
android:id="@+id/sud_layout_description"
|
||||
style="@style/SudDescription.Glif"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@@ -41,6 +41,7 @@
|
||||
|
||||
<TextView
|
||||
style="@style/TextAppearance.SudGlifItemSummary"
|
||||
android:id="@+id/sud_layout_description"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/master_clear_desc"/>
|
||||
|
@@ -31,7 +31,7 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/master_clear_confirm"
|
||||
android:id="@+id/sud_layout_description"
|
||||
style="@style/SudItemTitle.GlifDescription"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
@@ -33,7 +33,7 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message"
|
||||
android:id="@+id/sud_layout_description"
|
||||
style="@style/SudDescription.Glif"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@@ -141,7 +141,7 @@ public class EncryptionInterstitial extends SettingsActivity {
|
||||
R.string.encryption_interstitial_message_password;
|
||||
break;
|
||||
}
|
||||
TextView message = (TextView) getActivity().findViewById(R.id.encryption_message);
|
||||
TextView message = (TextView) getActivity().findViewById(R.id.sud_layout_description);
|
||||
message.setText(msgId);
|
||||
|
||||
setRequirePasswordState(getActivity().getIntent().getBooleanExtra(
|
||||
|
@@ -207,7 +207,7 @@ public class MasterClearConfirm extends InstrumentedFragment {
|
||||
|
||||
private void setAccessibilityTitle() {
|
||||
CharSequence currentTitle = getActivity().getTitle();
|
||||
TextView confirmationMessage = mContentView.findViewById(R.id.master_clear_confirm);
|
||||
TextView confirmationMessage = mContentView.findViewById(R.id.sud_layout_description);
|
||||
if (confirmationMessage != null) {
|
||||
String accessibleText = new StringBuilder(currentTitle).append(",").append(
|
||||
confirmationMessage.getText()).toString();
|
||||
@@ -218,7 +218,7 @@ public class MasterClearConfirm extends InstrumentedFragment {
|
||||
@VisibleForTesting
|
||||
void setSubtitle() {
|
||||
if (mEraseEsims) {
|
||||
((TextView) mContentView.findViewById(R.id.master_clear_confirm))
|
||||
((TextView) mContentView.findViewById(R.id.sud_layout_description))
|
||||
.setText(R.string.master_clear_final_desc_esim);
|
||||
}
|
||||
}
|
||||
|
@@ -276,7 +276,7 @@ public abstract class BiometricEnrollIntroduction extends BiometricEnrollBase
|
||||
protected void initViews() {
|
||||
super.initViews();
|
||||
|
||||
TextView description = (TextView) findViewById(R.id.description_text);
|
||||
TextView description = (TextView) findViewById(R.id.sud_layout_description);
|
||||
if (mBiometricUnlockDisabledByAdmin) {
|
||||
description.setText(getDescriptionResDisabledByAdmin());
|
||||
}
|
||||
|
@@ -131,7 +131,7 @@ public class FingerprintEnrollEnrolling extends BiometricsEnrollEnrolling {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.fingerprint_enroll_enrolling);
|
||||
setHeaderText(R.string.security_settings_fingerprint_enroll_repeat_title);
|
||||
mStartMessage = (TextView) findViewById(R.id.start_message);
|
||||
mStartMessage = (TextView) findViewById(R.id.sud_layout_description);
|
||||
mRepeatMessage = (TextView) findViewById(R.id.repeat_message);
|
||||
mErrorText = (TextView) findViewById(R.id.error_text);
|
||||
mProgressBar = (ProgressBar) findViewById(R.id.fingerprint_progress_bar);
|
||||
|
@@ -89,7 +89,7 @@ public class SetupFingerprintEnrollIntroduction extends FingerprintEnrollIntrodu
|
||||
protected void initViews() {
|
||||
super.initViews();
|
||||
|
||||
TextView description = (TextView) findViewById(R.id.description_text);
|
||||
TextView description = (TextView) findViewById(R.id.sud_layout_description);
|
||||
description.setText(
|
||||
R.string.security_settings_fingerprint_enroll_introduction_message_setup);
|
||||
|
||||
|
@@ -123,7 +123,7 @@ public class RedactionInterstitial extends SettingsActivity {
|
||||
mUserId = Utils.getUserIdFromBundle(
|
||||
getContext(), getActivity().getIntent().getExtras());
|
||||
if (UserManager.get(getContext()).isManagedProfile(mUserId)) {
|
||||
((TextView) view.findViewById(R.id.message))
|
||||
((TextView) view.findViewById(R.id.sud_layout_description))
|
||||
.setText(R.string.lock_screen_notifications_interstitial_message_profile);
|
||||
mShowAllButton.setText(R.string.lock_screen_notifications_summary_show_profile);
|
||||
mRedactSensitiveButton
|
||||
|
@@ -443,7 +443,7 @@ public class ChooseLockPassword extends SettingsActivity {
|
||||
mSkipOrClearButton = mixin.getSecondaryButton();
|
||||
mNextButton = mixin.getPrimaryButton();
|
||||
|
||||
mMessage = view.findViewById(R.id.message);
|
||||
mMessage = view.findViewById(R.id.sud_layout_description);
|
||||
if (mForFingerprint) {
|
||||
mLayout.setIcon(getActivity().getDrawable(R.drawable.ic_fingerprint_header));
|
||||
} else if (mForFace) {
|
||||
|
@@ -520,7 +520,7 @@ public class ChooseLockPattern extends SettingsActivity {
|
||||
mTitleText = view.findViewById(R.id.suc_layout_title);
|
||||
mHeaderText = (TextView) view.findViewById(R.id.headerText);
|
||||
mDefaultHeaderColorList = mHeaderText.getTextColors();
|
||||
mMessageText = view.findViewById(R.id.message);
|
||||
mMessageText = view.findViewById(R.id.sud_layout_description);
|
||||
mLockPatternView = (LockPatternView) view.findViewById(R.id.lockPattern);
|
||||
mLockPatternView.setOnPatternListener(mChooseNewLockPatternListener);
|
||||
mLockPatternView.setTactileFeedbackEnabled(
|
||||
|
@@ -137,7 +137,7 @@ public class ConfirmLockPassword extends ConfirmDeviceCredentialBaseActivity {
|
||||
if (mHeaderTextView == null) {
|
||||
mHeaderTextView = view.findViewById(R.id.suc_layout_title);
|
||||
}
|
||||
mDetailsTextView = (TextView) view.findViewById(R.id.detailsText);
|
||||
mDetailsTextView = (TextView) view.findViewById(R.id.sud_layout_description);
|
||||
mErrorTextView = (TextView) view.findViewById(R.id.errorText);
|
||||
mIsAlpha = DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC == storedQuality
|
||||
|| DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC == storedQuality
|
||||
|
@@ -116,7 +116,7 @@ public class ConfirmLockPattern extends ConfirmDeviceCredentialBaseActivity {
|
||||
false);
|
||||
mHeaderTextView = (TextView) view.findViewById(R.id.headerText);
|
||||
mLockPatternView = (LockPatternView) view.findViewById(R.id.lockPattern);
|
||||
mDetailsTextView = (TextView) view.findViewById(R.id.detailsText);
|
||||
mDetailsTextView = (TextView) view.findViewById(R.id.sud_layout_description);
|
||||
mErrorTextView = (TextView) view.findViewById(R.id.errorText);
|
||||
mLeftSpacerLandscape = view.findViewById(R.id.leftSpacer);
|
||||
mRightSpacerLandscape = view.findViewById(R.id.rightSpacer);
|
||||
|
@@ -47,7 +47,7 @@ public class MasterClearConfirmTest {
|
||||
masterClearConfirm.setSubtitle();
|
||||
|
||||
assertThat(((TextView) masterClearConfirm.mContentView
|
||||
.findViewById(R.id.master_clear_confirm)).getText())
|
||||
.findViewById(R.id.sud_layout_description)).getText())
|
||||
.isEqualTo(mActivity.getString(R.string.master_clear_final_desc_esim));
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class MasterClearConfirmTest {
|
||||
masterClearConfirm.setSubtitle();
|
||||
|
||||
assertThat(((TextView) masterClearConfirm.mContentView
|
||||
.findViewById(R.id.master_clear_confirm)).getText())
|
||||
.findViewById(R.id.sud_layout_description)).getText())
|
||||
.isEqualTo(mActivity.getString(R.string.master_clear_final_desc));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user