Merge "Fix crash adding an account." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f6fb21c44d
@@ -137,17 +137,12 @@ public abstract class ConfirmDeviceCredentialBaseFragment extends InstrumentedFr
|
|||||||
if (intent != null) {
|
if (intent != null) {
|
||||||
CharSequence titleText = intent.getCharSequenceExtra(
|
CharSequence titleText = intent.getCharSequenceExtra(
|
||||||
ConfirmDeviceCredentialBaseFragment.TITLE_TEXT);
|
ConfirmDeviceCredentialBaseFragment.TITLE_TEXT);
|
||||||
if (titleText == null && supplementalText == null) {
|
if (titleText == null || suplementalText == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
StringBuilder builder = new StringBuilder();
|
String accessibilityTitle =
|
||||||
if (titleText != null) {
|
new StringBuilder(titleText).append(",").append(suplementalText).toString();
|
||||||
builder.append(titleText).append(",");
|
getActivity().setTitle(Utils.createAccessibleSequence(titleText, accessibilityTitle));
|
||||||
}
|
|
||||||
if (supplementalText != null) {
|
|
||||||
builder.append(supplementalText);
|
|
||||||
}
|
|
||||||
getActivity().setTitle(Utils.createAccessibleSequence(titleText, builder.toString()));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user