mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
[Android] Fix accessibility scope of a field in KeyBindPreference.java. This doesn't need to be package-private, but private. It should not be able to be directly accessed.
This commit is contained in:
parent
0cd372c3c0
commit
a9cd6f8406
@ -17,22 +17,23 @@ import com.retroarch.R;
|
||||
|
||||
final class KeyBindEditText extends EditText
|
||||
{
|
||||
KeyBindPreference pref;
|
||||
private KeyBindPreference pref;
|
||||
|
||||
public KeyBindEditText(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
|
||||
public void setBoundPreference(KeyBindPreference pref)
|
||||
{
|
||||
this.pref = pref;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean onKeyPreIme(int keyCode, KeyEvent event)
|
||||
{
|
||||
return pref.onKey(null, event.getKeyCode(), event);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean onKeyDown(int keyCode, KeyEvent event)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user