Update the strings for bluetooth hearing device details page in U
Bug: 270086620 Test: flash rom and check the device details page UI for hearing device Change-Id: Iae1a7fae9f51ed8318d757ed7b3eefe0261b28a1
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
|
||||
package com.android.settings.bluetooth;
|
||||
|
||||
import static com.android.settings.bluetooth.BluetoothDeviceDetailsFragment.FEATURE_HEARING_DEVICE_CONTROLS_ORDER;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
import android.util.FeatureFlagUtils;
|
||||
@@ -41,7 +39,7 @@ import com.google.common.annotations.VisibleForTesting;
|
||||
public class BluetoothDetailsHearingDeviceControlsController extends BluetoothDetailsController
|
||||
implements Preference.OnPreferenceClickListener {
|
||||
|
||||
private static final String KEY_FEATURE_CONTROLS_GROUP = "feature_controls_group";
|
||||
private static final String KEY_DEVICE_CONTROLS_GENERAL_GROUP = "device_controls_general";
|
||||
@VisibleForTesting
|
||||
static final String KEY_HEARING_DEVICE_CONTROLS = "hearing_device_controls";
|
||||
|
||||
@@ -65,7 +63,6 @@ public class BluetoothDetailsHearingDeviceControlsController extends BluetoothDe
|
||||
|
||||
final PreferenceCategory prefCategory = screen.findPreference(getPreferenceKey());
|
||||
final Preference pref = createHearingDeviceControlsPreference(prefCategory.getContext());
|
||||
pref.setOrder(FEATURE_HEARING_DEVICE_CONTROLS_ORDER);
|
||||
prefCategory.addPreference(pref);
|
||||
}
|
||||
|
||||
@@ -74,7 +71,7 @@ public class BluetoothDetailsHearingDeviceControlsController extends BluetoothDe
|
||||
|
||||
@Override
|
||||
public String getPreferenceKey() {
|
||||
return KEY_FEATURE_CONTROLS_GROUP;
|
||||
return KEY_DEVICE_CONTROLS_GENERAL_GROUP;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -90,7 +87,6 @@ public class BluetoothDetailsHearingDeviceControlsController extends BluetoothDe
|
||||
final Preference preference = new Preference(context);
|
||||
preference.setKey(KEY_HEARING_DEVICE_CONTROLS);
|
||||
preference.setTitle(context.getString(R.string.bluetooth_device_controls_title));
|
||||
preference.setSummary(context.getString(R.string.bluetooth_device_controls_summary));
|
||||
preference.setOnPreferenceClickListener(this);
|
||||
|
||||
return preference;
|
||||
|
Reference in New Issue
Block a user