From a9cd6f8406c26ff63caae81ecb1a52ac241ec4a2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 31 Oct 2013 07:58:09 -0400 Subject: [PATCH] [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. --- .../browser/preferences/util/KeyBindPreference.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/android/phoenix/src/com/retroarch/browser/preferences/util/KeyBindPreference.java b/android/phoenix/src/com/retroarch/browser/preferences/util/KeyBindPreference.java index 4ae4bc0903..d35454b3b8 100644 --- a/android/phoenix/src/com/retroarch/browser/preferences/util/KeyBindPreference.java +++ b/android/phoenix/src/com/retroarch/browser/preferences/util/KeyBindPreference.java @@ -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) {