mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +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
|
final class KeyBindEditText extends EditText
|
||||||
{
|
{
|
||||||
KeyBindPreference pref;
|
private KeyBindPreference pref;
|
||||||
|
|
||||||
public KeyBindEditText(Context context, AttributeSet attrs) {
|
public KeyBindEditText(Context context, AttributeSet attrs) {
|
||||||
super(context, attrs);
|
super(context, attrs);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBoundPreference(KeyBindPreference pref)
|
public void setBoundPreference(KeyBindPreference pref)
|
||||||
{
|
{
|
||||||
this.pref = pref;
|
this.pref = pref;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onKeyPreIme(int keyCode, KeyEvent event)
|
public boolean onKeyPreIme(int keyCode, KeyEvent event)
|
||||||
{
|
{
|
||||||
return pref.onKey(null, event.getKeyCode(), event);
|
return pref.onKey(null, event.getKeyCode(), event);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onKeyDown(int keyCode, KeyEvent event)
|
public boolean onKeyDown(int keyCode, KeyEvent event)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user