forked from organicmaps/organicmaps
Show keyboard automatically when edit description dialog is opened.
This commit is contained in:
parent
54935ef66d
commit
afc7736751
2 changed files with 6 additions and 2 deletions
|
@ -8,6 +8,7 @@ import android.text.Html;
|
|||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.EditText;
|
||||
import android.widget.TextView;
|
||||
|
||||
|
@ -62,6 +63,9 @@ public class EditDescriptionFragment extends BaseMwmDialogFragment
|
|||
mEtDescription = (EditText) view.findViewById(R.id.et__description);
|
||||
mEtDescription.setText(description);
|
||||
initToolbar(view);
|
||||
|
||||
mEtDescription.requestFocus();
|
||||
getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
||||
}
|
||||
|
||||
public void setSaveDescriptionListener(OnDescriptionSaveListener listener)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package com.mapswithme.util;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.speech.RecognizerIntent;
|
||||
import android.view.View;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class InputUtils
|
||||
{
|
||||
private static Boolean mVoiceInputSupported = null;
|
||||
|
|
Loading…
Add table
Reference in a new issue