Password on wifi sharing screen is NOT monospace.
Difficult to distinguish I from l in the password display on the wifi sharing screen. Fix: 266182587 Test: Visual Test Change-Id: Iea266fa17edcdf08f161429a44e6c24051084fdd
This commit is contained in:
@@ -27,6 +27,7 @@ import android.graphics.Bitmap;
|
|||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.provider.Settings;
|
import android.provider.Settings;
|
||||||
|
import android.text.InputType;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
@@ -118,6 +119,8 @@ public class WifiDppQrCodeGeneratorFragment extends WifiDppQrCodeBaseFragment {
|
|||||||
|
|
||||||
final String password = wifiNetworkConfig.getPreSharedKey();
|
final String password = wifiNetworkConfig.getPreSharedKey();
|
||||||
TextView passwordView = view.findViewById(R.id.password);
|
TextView passwordView = view.findViewById(R.id.password);
|
||||||
|
passwordView.setInputType(
|
||||||
|
InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);
|
||||||
if (TextUtils.isEmpty(password)) {
|
if (TextUtils.isEmpty(password)) {
|
||||||
mSummary.setText(getString(
|
mSummary.setText(getString(
|
||||||
R.string.wifi_dpp_scan_open_network_qr_code_with_another_device,
|
R.string.wifi_dpp_scan_open_network_qr_code_with_another_device,
|
||||||
|
Reference in New Issue
Block a user