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

Commit ed4b28e8 authored by Roman Birg's avatar Roman Birg Committed by Scott Mertz
Browse files

Settings: bring up IME when renaming profile



Change-Id: I3535503d5e5431e9e6790933171e0fabe05c3cc6
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
(cherry picked from commit e2d5bb47)
parent 5ca0da54
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.CheckBox;
@@ -796,7 +797,14 @@ public class SetupActionsFragment extends SettingsPreferenceFragment
                alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(!empty);
            }
        });

        alertDialog.setOnShowListener(new DialogInterface.OnShowListener() {
            @Override
            public void onShow(DialogInterface dialog) {
                InputMethodManager imm = (InputMethodManager)
                        getSystemService(Context.INPUT_METHOD_SERVICE);
                imm.showSoftInput(entry, InputMethodManager.SHOW_IMPLICIT);
            }
        });
        alertDialog.show();
    }