Show keyboard when opening TimeDialog. fixes #436
This commit is contained in:
parent
5ede220e63
commit
8a951d0dbf
@ -20,7 +20,7 @@
|
|||||||
android:inputType="number"
|
android:inputType="number"
|
||||||
android:maxLength="2" >
|
android:maxLength="2" >
|
||||||
|
|
||||||
<requestFocus />
|
|
||||||
</EditText>
|
</EditText>
|
||||||
|
|
||||||
<Spinner
|
<Spinner
|
||||||
|
@ -8,6 +8,7 @@ import android.text.TextWatcher;
|
|||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.Window;
|
import android.view.Window;
|
||||||
|
import android.view.inputmethod.InputMethodManager;
|
||||||
import android.widget.*;
|
import android.widget.*;
|
||||||
import de.danoeh.antennapod.BuildConfig;
|
import de.danoeh.antennapod.BuildConfig;
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
@ -102,6 +103,15 @@ public abstract class TimeDialog extends Dialog {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
checkInputLength(etxtTime.getText().length());
|
checkInputLength(etxtTime.getText().length());
|
||||||
|
etxtTime.postDelayed(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
|
imm.showSoftInput(etxtTime, InputMethodManager.SHOW_IMPLICIT);
|
||||||
|
}
|
||||||
|
}, 100);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user