Loading res/layout/advanced_bt_entity_header.xml +1 −2 Original line number Diff line number Diff line Loading @@ -42,8 +42,7 @@ android:layout_marginTop="2dp" android:singleLine="false" android:ellipsize="marquee" android:textDirection="locale" android:text="test_summary"/> android:textDirection="locale"/> <LinearLayout android:layout_width="match_parent" Loading src/com/android/settings/bluetooth/AdvancedBluetoothDetailsHeaderController.java +5 −1 Original line number Diff line number Diff line Loading @@ -182,9 +182,9 @@ public class AdvancedBluetoothDetailsHeaderController extends BasePreferenceCont final TextView title = mLayoutPreference.findViewById(R.id.entity_header_title); title.setText(mCachedDevice.getName()); final TextView summary = mLayoutPreference.findViewById(R.id.entity_header_summary); summary.setText(mCachedDevice.getConnectionSummary(true /* shortSummary */)); if (!mCachedDevice.isConnected() || mCachedDevice.isBusy()) { summary.setText(mCachedDevice.getConnectionSummary(true /* shortSummary */)); updateDisconnectLayout(); return; } Loading @@ -196,6 +196,9 @@ public class AdvancedBluetoothDetailsHeaderController extends BasePreferenceCont mLayoutPreference.findViewById(R.id.layout_left).setVisibility(View.GONE); mLayoutPreference.findViewById(R.id.layout_right).setVisibility(View.GONE); summary.setText(mCachedDevice.getConnectionSummary( BluetoothUtils.getIntMetaData(device, BluetoothDevice.METADATA_MAIN_BATTERY) != BluetoothUtils.META_INT_ERROR)); updateSubLayout(mLayoutPreference.findViewById(R.id.layout_middle), BluetoothDevice.METADATA_MAIN_ICON, BluetoothDevice.METADATA_MAIN_BATTERY, Loading @@ -207,6 +210,7 @@ public class AdvancedBluetoothDetailsHeaderController extends BasePreferenceCont BluetoothDevice.DEVICE_TYPE_UNTETHERED_HEADSET) || BluetoothUtils.getBooleanMetaData(device, BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET)) { summary.setText(mCachedDevice.getConnectionSummary(true /* shortSummary */)); updateSubLayout(mLayoutPreference.findViewById(R.id.layout_left), BluetoothDevice.METADATA_UNTETHERED_LEFT_ICON, BluetoothDevice.METADATA_UNTETHERED_LEFT_BATTERY, Loading Loading
res/layout/advanced_bt_entity_header.xml +1 −2 Original line number Diff line number Diff line Loading @@ -42,8 +42,7 @@ android:layout_marginTop="2dp" android:singleLine="false" android:ellipsize="marquee" android:textDirection="locale" android:text="test_summary"/> android:textDirection="locale"/> <LinearLayout android:layout_width="match_parent" Loading
src/com/android/settings/bluetooth/AdvancedBluetoothDetailsHeaderController.java +5 −1 Original line number Diff line number Diff line Loading @@ -182,9 +182,9 @@ public class AdvancedBluetoothDetailsHeaderController extends BasePreferenceCont final TextView title = mLayoutPreference.findViewById(R.id.entity_header_title); title.setText(mCachedDevice.getName()); final TextView summary = mLayoutPreference.findViewById(R.id.entity_header_summary); summary.setText(mCachedDevice.getConnectionSummary(true /* shortSummary */)); if (!mCachedDevice.isConnected() || mCachedDevice.isBusy()) { summary.setText(mCachedDevice.getConnectionSummary(true /* shortSummary */)); updateDisconnectLayout(); return; } Loading @@ -196,6 +196,9 @@ public class AdvancedBluetoothDetailsHeaderController extends BasePreferenceCont mLayoutPreference.findViewById(R.id.layout_left).setVisibility(View.GONE); mLayoutPreference.findViewById(R.id.layout_right).setVisibility(View.GONE); summary.setText(mCachedDevice.getConnectionSummary( BluetoothUtils.getIntMetaData(device, BluetoothDevice.METADATA_MAIN_BATTERY) != BluetoothUtils.META_INT_ERROR)); updateSubLayout(mLayoutPreference.findViewById(R.id.layout_middle), BluetoothDevice.METADATA_MAIN_ICON, BluetoothDevice.METADATA_MAIN_BATTERY, Loading @@ -207,6 +210,7 @@ public class AdvancedBluetoothDetailsHeaderController extends BasePreferenceCont BluetoothDevice.DEVICE_TYPE_UNTETHERED_HEADSET) || BluetoothUtils.getBooleanMetaData(device, BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET)) { summary.setText(mCachedDevice.getConnectionSummary(true /* shortSummary */)); updateSubLayout(mLayoutPreference.findViewById(R.id.layout_left), BluetoothDevice.METADATA_UNTETHERED_LEFT_ICON, BluetoothDevice.METADATA_UNTETHERED_LEFT_BATTERY, Loading