Fix ProgressCategory theming and layout
- add missing constructors for correct theming - fix layout by adding missing paddingStart / paddingEnd Change-Id: I52a511d326b760a47339b2b9dad349c9f825dbd2
This commit is contained in:
@@ -22,8 +22,26 @@ import com.android.settings.R;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
/**
|
||||
* A Bluetooth discovery progress category
|
||||
*/
|
||||
public class BluetoothProgressCategory extends ProgressCategory {
|
||||
public BluetoothProgressCategory(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
public BluetoothProgressCategory(Context context, AttributeSet attrs) {
|
||||
super(context, attrs, R.string.bluetooth_no_devices_found);
|
||||
this(context, attrs, 0);
|
||||
}
|
||||
|
||||
public BluetoothProgressCategory(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
this(context, attrs, defStyleAttr, 0);
|
||||
}
|
||||
|
||||
public BluetoothProgressCategory(Context context, AttributeSet attrs, int defStyleAttr,
|
||||
int defStyleRes) {
|
||||
super(context, attrs, defStyleAttr, defStyleRes);
|
||||
|
||||
setEmptyTextRes(R.string.bluetooth_no_devices_found);
|
||||
}
|
||||
}
|
||||
|
@@ -292,7 +292,7 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
|
||||
|
||||
// Available devices category
|
||||
if (mAvailableDevicesCategory == null) {
|
||||
mAvailableDevicesCategory = new BluetoothProgressCategory(getActivity(), null);
|
||||
mAvailableDevicesCategory = new BluetoothProgressCategory(getActivity());
|
||||
} else {
|
||||
mAvailableDevicesCategory.removeAll();
|
||||
}
|
||||
|
Reference in New Issue
Block a user