Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Disable soft input on focus for the SettingsEditText text fields (#2824)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored Feb 20, 2020
1 parent 8f1b238 commit 7fd3d69
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
import android.view.View;
import android.widget.EditText;

import org.mozilla.vrbrowser.R;

import androidx.annotation.Nullable;

import org.mozilla.vrbrowser.R;

@SuppressLint("AppCompatCustomView")
public class SettingsEditText extends EditText {

Expand All @@ -33,6 +33,7 @@ public SettingsEditText(Context context, @Nullable AttributeSet attrs, int defSt

TypedArray attributes = context.obtainStyledAttributes(attrs, R.styleable.EditSetting, defStyleAttr, 0);
mHighlightedTextColor = attributes.getColor(R.styleable.EditSetting_highlightedTextColor, 0);
setShowSoftInputOnFocus(false);

initialize();
}
Expand Down

0 comments on commit 7fd3d69

Please sign in to comment.