Merge "Make it possible to have open tether network" into pi-dev

This commit is contained in:
Salvador Martinez
2018-04-09 23:30:35 +00:00
committed by Android (Google) Code Review
8 changed files with 81 additions and 59 deletions

View File

@@ -86,9 +86,14 @@ public class ValidatedEditTextPreference extends CustomEditTextPreference {
super.onBindViewHolder(holder);
final TextView textView = (TextView) holder.findViewById(android.R.id.summary);
if (textView != null && mIsSummaryPassword) {
if (textView == null) {
return;
}
if (mIsSummaryPassword) {
textView.setInputType(
InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
} else {
textView.setInputType(InputType.TYPE_CLASS_TEXT);
}
}