Bluetooth preference use vector icon.

This commit is contained in:
Dennis Guse
2020-08-06 12:34:01 +02:00
parent d0ca06f964
commit 7787dae9f6
2 changed files with 19 additions and 1 deletions
@@ -189,7 +189,7 @@ public abstract class BluetoothLeSensorPreference extends DialogPreference {
BluetoothLeSensorPreferenceDialog.this.onClick(dialog, DialogInterface.BUTTON_POSITIVE);
dialog.dismiss();
});
builder.setIcon(android.R.drawable.stat_sys_data_bluetooth);
builder.setIcon(R.drawable.ic_bluetooth_searching_24dp);
builder.setPositiveButton(null, null);
}
@@ -0,0 +1,18 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<path
android:name="smallDot"
android:pathData="m14.24,12.01 l2.32,2.32C16.84,13.61 17,12.82 17,12 17,11.18 16.84,10.41 16.57,9.69Z"
android:fillColor="#000000" />
<path
android:name="bigDot"
android:pathData="m19.53,6.71 l-1.26,1.26c0.63,1.21 0.98,2.57 0.98,4.02 0,1.45 -0.36,2.82 -0.98,4.02l1.2,1.2C20.44,15.67 21.01,13.85 21.01,11.9 21,10.01 20.46,8.23 19.53,6.71Z"
android:fillColor="#000000" />
<path
android:pathData="M12.88,16.29 L11,18.17V14.41ZM11,5.83 L12.88,7.71 11,9.59ZM15.71,7.71 L10,2H9V9.59L4.41,5 3,6.41 8.59,12 3,17.59 4.41,19 9,14.41V22h1L15.71,16.29 11.41,12Z"
android:fillColor="#000000" />
</vector>