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

Commit ab8f16e4 authored by Matt Garnes's avatar Matt Garnes
Browse files

Hide soft keyboard when opening LockPatternActivity.

Due to the hidden EditText Views in this Activity, the soft keyboard
will open on some devices when opening this Activity. The keyboard
should be hidden by default so request this upon creating the Activity.

Change-Id: I1de09de4a58da002e0827c1f160cf7b76e020b9a
(cherry picked from commit 08584aaa)
(cherry picked from commit 5f3b778f)
parent a03faaa9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.util.Base64;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.TextView;

@@ -181,6 +182,7 @@ public class LockPatternActivity extends Activity implements OnNotifyAccountRese

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
        setContentView(R.layout.patternlock);

        mPatternLockHeader = (TextView) findViewById(R.id.pattern_lock_header);