Add password hint and fix settings crash
Bug: 2534348 Bug: 2533980 Change-Id: I2f220ac9c710869d3f93a56557afb33478c3b323
This commit is contained in:
@@ -81,6 +81,13 @@
|
|||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:password="true" />
|
android:password="true" />
|
||||||
|
|
||||||
|
<TextView android:id="@+id/hint"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:text="@string/credentials_password_too_short"
|
||||||
|
android:layout_marginBottom="10sp"/>
|
||||||
|
|
||||||
<CheckBox android:id="@+id/show_password"
|
<CheckBox android:id="@+id/show_password"
|
||||||
style="?android:attr/textAppearanceSmallInverse"
|
style="?android:attr/textAppearanceSmallInverse"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@@ -114,9 +114,9 @@ public class WifiApSettings extends PreferenceActivity
|
|||||||
|
|
||||||
public void onClick(DialogInterface dialogInterface, int button) {
|
public void onClick(DialogInterface dialogInterface, int button) {
|
||||||
|
|
||||||
|
if (button == DialogInterface.BUTTON_POSITIVE) {
|
||||||
mWifiConfig = mDialog.getConfig();
|
mWifiConfig = mDialog.getConfig();
|
||||||
|
if(mWifiConfig != null) {
|
||||||
if (button == DialogInterface.BUTTON_POSITIVE && mWifiConfig != null) {
|
|
||||||
mWifiManager.setWifiApEnabled(mWifiConfig, true);
|
mWifiManager.setWifiApEnabled(mWifiConfig, true);
|
||||||
mCreateNetwork.setSummary(String.format(getString(CONFIG_SUBTEXT),
|
mCreateNetwork.setSummary(String.format(getString(CONFIG_SUBTEXT),
|
||||||
mWifiConfig.SSID,
|
mWifiConfig.SSID,
|
||||||
@@ -127,6 +127,8 @@ public class WifiApSettings extends PreferenceActivity
|
|||||||
* configuration. Update status with new config.
|
* configuration. Update status with new config.
|
||||||
*/
|
*/
|
||||||
mWifiApEnabler.updateConfigSummary(mWifiConfig);
|
mWifiApEnabler.updateConfigSummary(mWifiConfig);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user