mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-06-19 07:30:57 +00:00
Hide the keyboard before every slide change in the intro
This commit is contained in:
parent
c3c4e1fb4b
commit
0a9bfde438
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
package com.beemdevelopment.aegis.ui;
|
package com.beemdevelopment.aegis.ui;
|
||||||
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.view.inputmethod.InputMethodManager;
|
||||||
|
|
||||||
import com.beemdevelopment.aegis.R;
|
import com.beemdevelopment.aegis.R;
|
||||||
import com.beemdevelopment.aegis.ThemeMap;
|
import com.beemdevelopment.aegis.ThemeMap;
|
||||||
|
@ -45,6 +46,10 @@ public class IntroActivity extends IntroBaseActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean onBeforeSlideChanged(Class<? extends SlideFragment> oldSlide, Class<? extends SlideFragment> newSlide) {
|
protected boolean onBeforeSlideChanged(Class<? extends SlideFragment> oldSlide, Class<? extends SlideFragment> newSlide) {
|
||||||
|
// hide the keyboard before every slide change
|
||||||
|
InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);
|
||||||
|
imm.hideSoftInputFromWindow(findViewById(android.R.id.content).getWindowToken(), 0);
|
||||||
|
|
||||||
if (oldSlide == SecurityPickerSlide.class
|
if (oldSlide == SecurityPickerSlide.class
|
||||||
&& newSlide == SecuritySetupSlide.class
|
&& newSlide == SecuritySetupSlide.class
|
||||||
&& getState().getInt("cryptType", CRYPT_TYPE_INVALID) == CRYPT_TYPE_NONE) {
|
&& getState().getInt("cryptType", CRYPT_TYPE_INVALID) == CRYPT_TYPE_NONE) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue