Merge "Use super method for Vibration preferences" into rvc-d1-dev am: fa63980566
am: 6899a1ad06
Change-Id: Id25d866d0471acdb71a2bfffef899ef48164c54d
This commit is contained in:
@@ -76,6 +76,7 @@ public class SoundSettings extends DashboardFragment implements OnActivityResult
|
||||
private RingtonePreference mRequestPreference;
|
||||
private UpdatableListPreferenceDialogFragment mDialogFragment;
|
||||
private String mHfpOutputControllerKey;
|
||||
private String mVibrationPreferencesKey = "vibration_preference_screen";
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
@@ -127,6 +128,10 @@ public class SoundSettings extends DashboardFragment implements OnActivityResult
|
||||
|
||||
@Override
|
||||
public void onDisplayPreferenceDialog(Preference preference) {
|
||||
if (TextUtils.equals(mVibrationPreferencesKey, preference.getKey())) {
|
||||
super.onDisplayPreferenceDialog(preference);
|
||||
return;
|
||||
}
|
||||
final int metricsCategory;
|
||||
if (mHfpOutputControllerKey.equals(preference.getKey())) {
|
||||
metricsCategory = SettingsEnums.DIALOG_SWITCH_HFP_DEVICES;
|
||||
@@ -311,4 +316,4 @@ public class SoundSettings extends DashboardFragment implements OnActivityResult
|
||||
mDialogFragment.onListPreferenceUpdated(preference);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user