[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:
Lioncash 2013-10-31 07:58:09 -04:00
parent 0cd372c3c0
commit a9cd6f8406

View File

@ -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)
{ {