Merge "Fix preferences under Related category can not launch its own page in bluetooth device details page"

This commit is contained in:
Jason Hsu
2023-01-06 06:27:03 +00:00
committed by Android (Google) Code Review
2 changed files with 94 additions and 0 deletions

View File

@@ -50,6 +50,10 @@ public class KeyboardSettingsPreferenceController extends BasePreferenceControll
@Override
public boolean handlePreferenceTreeClick(Preference preference) {
if (!getPreferenceKey().equals(preference.getKey())) {
return false;
}
final Intent intent = new Intent(Settings.ACTION_HARD_KEYBOARD_SETTINGS);
intent.setClass(mContext, PhysicalKeyboardActivity.class);
intent.putExtra(PhysicalKeyboardFragment.EXTRA_BT_ADDRESS, mCachedDevice.getAddress());