Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9775dc95 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Add password hint and fix settings crash

Bug: 2534348
Bug: 2533980
Change-Id: I2f220ac9c710869d3f93a56557afb33478c3b323
parent 3e5cfe8f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -81,6 +81,13 @@
                    android:singleLine="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"
                    style="?android:attr/textAppearanceSmallInverse"
                    android:layout_width="match_parent"
+15 −13
Original line number Diff line number Diff line
@@ -114,9 +114,9 @@ public class WifiApSettings extends PreferenceActivity

    public void onClick(DialogInterface dialogInterface, int button) {

        if (button == DialogInterface.BUTTON_POSITIVE) {
            mWifiConfig = mDialog.getConfig();

        if (button == DialogInterface.BUTTON_POSITIVE && mWifiConfig != null) {
            if(mWifiConfig != null) {
                mWifiManager.setWifiApEnabled(mWifiConfig, true);
                mCreateNetwork.setSummary(String.format(getString(CONFIG_SUBTEXT),
                            mWifiConfig.SSID,
@@ -127,6 +127,8 @@ public class WifiApSettings extends PreferenceActivity
                 * configuration. Update status with new config.
                 */
                mWifiApEnabler.updateConfigSummary(mWifiConfig);

            }
        }
    }
}