Fix the behavior of preference in IME Settings

Change-Id: I41f7c36fb73730248dcc98abbf4276ef6d772f36
This commit is contained in:
satok
2011-09-28 12:01:22 +09:00
parent 0554ddb39a
commit 8fe9869955

View File

@@ -104,6 +104,7 @@ public class InputMethodPreference extends CheckBoxPreference
mSummaryText = (TextView)view.findViewById(android.R.id.summary);
final boolean hasSubtypes = mImi.getSubtypeCount() > 1;
final String imiId = mImi.getId();
if (hasSubtypes) {
mInputMethodPref.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View arg0) {
@@ -114,6 +115,7 @@ public class InputMethodPreference extends CheckBoxPreference
return true;
}
});
}
if (mSettingsIntent != null) {
mInputMethodSettingsButton.setOnClickListener(