Add audio category preference in more settings fragment
BUG: 343317785 Test: local tested Flag: com.android.settings.flags.enable_bluetooth_device_details_polish Change-Id: I427a85159881205805933023020db2db73d729b6
This commit is contained in:
parent
09289058d1
commit
78cce9cd50
2 changed files with 12 additions and 1 deletions
|
|
@ -19,6 +19,9 @@
|
|||
android:key="bluetooth_device_more_settings_screen"
|
||||
android:title="@string/device_details_more_settings">
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="bluetooth_audio_device_type_group"/>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="bluetooth_profiles"/>
|
||||
</PreferenceScreen>
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ import android.view.Menu
|
|||
import android.view.MenuItem
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import com.android.settings.R
|
||||
import com.android.settings.bluetooth.BluetoothDetailsAudioDeviceTypeController
|
||||
import com.android.settings.bluetooth.BluetoothDetailsProfilesController
|
||||
import com.android.settings.bluetooth.Utils
|
||||
import com.android.settings.bluetooth.ui.model.DeviceSettingPreferenceModel
|
||||
|
|
@ -136,7 +137,14 @@ class DeviceDetailsMoreSettingsFragment : DashboardFragment() {
|
|||
formatter.getInvisibleBluetoothProfiles(
|
||||
FragmentTypeModel.DeviceDetailsMoreSettingsFragment
|
||||
),
|
||||
)
|
||||
),
|
||||
BluetoothDetailsAudioDeviceTypeController(
|
||||
context,
|
||||
this,
|
||||
localBluetoothManager,
|
||||
cachedDevice,
|
||||
settingsLifecycle,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue