Loading res/layout/preference_widget_dialog_summary.xml +0 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:text="@string/bluetooth_select_a2dp_codec_type_help_info" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/developer_option_dialog_margin_top" Loading src/com/android/settings/development/bluetooth/BaseBluetoothDialogPreference.java +6 −2 Original line number Diff line number Diff line Loading @@ -97,10 +97,14 @@ public abstract class BaseBluetoothDialogPreference extends CustomDialogPreferen radioButton.setText(mRadioButtonStrings.get(i)); radioButton.setEnabled(selectableIndex.contains(i)); } // View will be invisible when all options are enabled. if (selectableIndex.size() == mRadioButtonIds.size()) { // Initial help information text view final TextView helpTextView = view.findViewById(R.id.bluetooth_audio_codec_help_info); if (selectableIndex.size() == mRadioButtonIds.size()) { // View will be invisible when all options are enabled. helpTextView.setVisibility(View.GONE); } else { helpTextView.setText(R.string.bluetooth_select_a2dp_codec_type_help_info); helpTextView.setVisibility(View.VISIBLE); } } Loading Loading
res/layout/preference_widget_dialog_summary.xml +0 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:text="@string/bluetooth_select_a2dp_codec_type_help_info" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/developer_option_dialog_margin_top" Loading
src/com/android/settings/development/bluetooth/BaseBluetoothDialogPreference.java +6 −2 Original line number Diff line number Diff line Loading @@ -97,10 +97,14 @@ public abstract class BaseBluetoothDialogPreference extends CustomDialogPreferen radioButton.setText(mRadioButtonStrings.get(i)); radioButton.setEnabled(selectableIndex.contains(i)); } // View will be invisible when all options are enabled. if (selectableIndex.size() == mRadioButtonIds.size()) { // Initial help information text view final TextView helpTextView = view.findViewById(R.id.bluetooth_audio_codec_help_info); if (selectableIndex.size() == mRadioButtonIds.size()) { // View will be invisible when all options are enabled. helpTextView.setVisibility(View.GONE); } else { helpTextView.setText(R.string.bluetooth_select_a2dp_codec_type_help_info); helpTextView.setVisibility(View.VISIBLE); } } Loading