Fix references to resources for Settings
Bug: 293810334 Test: m Settings Change-Id: Ie140278f492ef7e1c062ec1ecae2866c521a86aa
This commit is contained in:
@@ -192,7 +192,7 @@ public class LeAudioBluetoothDetailsHeaderController extends BasePreferenceContr
|
||||
Drawable createBtBatteryIcon(Context context, int level) {
|
||||
final BatteryMeterView.BatteryMeterDrawable drawable =
|
||||
new BatteryMeterView.BatteryMeterDrawable(context,
|
||||
context.getColor(R.color.meter_background_color),
|
||||
context.getColor(com.android.settingslib.R.color.meter_background_color),
|
||||
context.getResources().getDimensionPixelSize(
|
||||
R.dimen.advanced_bluetooth_battery_meter_width),
|
||||
context.getResources().getDimensionPixelSize(
|
||||
@@ -287,7 +287,8 @@ public class LeAudioBluetoothDetailsHeaderController extends BasePreferenceContr
|
||||
com.android.settings.Utils.formatPercentage(batteryLevel);
|
||||
batterySummaryView.setText(batteryLevelPercentageString);
|
||||
batterySummaryView.setContentDescription(mContext.getString(
|
||||
R.string.bluetooth_battery_level, batteryLevelPercentageString));
|
||||
com.android.settingslib.R.string.bluetooth_battery_level,
|
||||
batteryLevelPercentageString));
|
||||
batterySummaryView.setCompoundDrawablesRelativeWithIntrinsicBounds(
|
||||
createBtBatteryIcon(mContext, batteryLevel), /* top */ null,
|
||||
/* end */ null, /* bottom */ null);
|
||||
|
Reference in New Issue
Block a user