Set Wi-Fi password typeface to monospace
Instead of input type, which turns this TextView into editable, which is not expected. Fix: 318621629 Test: manual - on Wi-Fi Share Change-Id: Ie1ab0f3f3f12583fc0b0c6eea9880e24364660de
This commit is contained in:
@@ -62,7 +62,8 @@
|
||||
android:focusable="true"
|
||||
android:longClickable="true"
|
||||
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
||||
android:textColor="?android:attr/textColorSecondary"/>
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
android:typeface="monospace" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -26,7 +26,6 @@ import android.graphics.Bitmap;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
import android.provider.Settings;
|
||||
import android.text.InputType;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
@@ -120,8 +119,6 @@ public class WifiDppQrCodeGeneratorFragment extends WifiDppQrCodeBaseFragment {
|
||||
|
||||
final String password = wifiNetworkConfig.getPreSharedKey();
|
||||
TextView passwordView = view.findViewById(R.id.password);
|
||||
passwordView.setInputType(
|
||||
InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);
|
||||
if (TextUtils.isEmpty(password)) {
|
||||
mSummary.setText(getString(
|
||||
R.string.wifi_dpp_scan_open_network_qr_code_with_another_device,
|
||||
|
Reference in New Issue
Block a user