[Android] Improve an if statement check in InputConfigFragment.java. Also clarify it.

This commit is contained in:
Lioncash 2013-10-26 00:59:53 -04:00
parent 8d71a83ae5
commit c78d5a9751
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,8 @@ public final class InputConfigFragment extends PreferenceFragment
return true;
}
if (pref.getKey().equals("inputOverlayConfigPref"))
// If the user has clicked the option to configure the input overlay.
if (pref.getTitle().equals(getString(R.string.input_overlay_layout)))
{
Intent inputOverlayConfig = new Intent(getActivity(), InputOverlayConfigActivity.class);
startActivity(inputOverlayConfig);