Use short summary in advanced BT header
So it only shows "Active" without battery level Bug: 132640667 Test: Manual Change-Id: Ib8ef2b6bec23c178f76925e89d447e5ac496313a
This commit is contained in:
@@ -149,7 +149,7 @@ public class AdvancedBluetoothDetailsHeaderController extends BasePreferenceCont
|
|||||||
final TextView title = mLayoutPreference.findViewById(R.id.entity_header_title);
|
final TextView title = mLayoutPreference.findViewById(R.id.entity_header_title);
|
||||||
title.setText(mCachedDevice.getName());
|
title.setText(mCachedDevice.getName());
|
||||||
final TextView summary = mLayoutPreference.findViewById(R.id.entity_header_summary);
|
final TextView summary = mLayoutPreference.findViewById(R.id.entity_header_summary);
|
||||||
summary.setText(mCachedDevice.getConnectionSummary());
|
summary.setText(mCachedDevice.getConnectionSummary(true /* shortSummary */));
|
||||||
|
|
||||||
if (!mCachedDevice.isConnected()) {
|
if (!mCachedDevice.isConnected()) {
|
||||||
updateDisconnectLayout();
|
updateDisconnectLayout();
|
||||||
|
Reference in New Issue
Block a user