mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-09 03:37:03 +01:00
BATTERY_UNKNOWN icon
This commit is contained in:
parent
2b9987d3e5
commit
ad7b50793a
@ -374,7 +374,7 @@ public class GBDeviceAdapterv2 extends ListAdapter<GBDevice, GBDeviceAdapterv2.V
|
|||||||
} else {
|
} else {
|
||||||
//should be the "default" status, shown when the device is not connected
|
//should be the "default" status, shown when the device is not connected
|
||||||
batteryStatusLabels[batteryIndex].setText("");
|
batteryStatusLabels[batteryIndex].setText("");
|
||||||
batteryIcons[batteryIndex].setImageLevel(50);
|
batteryIcons[batteryIndex].setImageLevel(300);
|
||||||
}
|
}
|
||||||
final int finalBatteryIndex = batteryIndex;
|
final int finalBatteryIndex = batteryIndex;
|
||||||
batteryStatusBoxes[batteryIndex].setOnClickListener(new View.OnClickListener() {
|
batteryStatusBoxes[batteryIndex].setOnClickListener(new View.OnClickListener() {
|
||||||
|
4
app/src/main/res/drawable/ic_battery_unknown.xml
Normal file
4
app/src/main/res/drawable/ic_battery_unknown.xml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="45sp" android:height="45sp" android:viewportWidth="25" android:viewportHeight="25">
|
||||||
|
<path android:fillAlpha=".3" android:fillColor="#000000" android:pathData="M10 2v2H8.33C7.6 4 7 4.6 7 5.33v15.34C7 21.4 7.6 22 8.33 22h7.33C16.4 22 17 21.4 17 20.67V5.33C17 4.6 16.4 4 15.67 4H14V2h-4z"/>
|
||||||
|
<path android:fillAlpha=".7" android:fillColor="#000000" android:pathData="M15.456 10.279c0-1.872-1.328-3.072-3.408-3.072-2.304 0-3.504 1.28-3.504 3.744h1.36c0-1.744 0.64-2.496 2.064-2.496 1.232 0 2.048 0.736 2.048 1.824 0 0.736-0.352 1.36-1.2 2.112-0.944 0.848-0.944 0.848-1.216 1.216-0.336 0.448-0.448 0.816-0.448 1.392v0.88h1.44v-0.752c0-0.688 0.176-0.976 1.264-1.984 1.2-1.088 1.6-1.808 1.6-2.864zm-2.864 8.784v-1.664h-1.44v1.664z"/>
|
||||||
|
</vector>
|
@ -24,4 +24,7 @@
|
|||||||
<item
|
<item
|
||||||
android:drawable="@drawable/ic_battery_charging_full"
|
android:drawable="@drawable/ic_battery_charging_full"
|
||||||
android:maxLevel="200" />
|
android:maxLevel="200" />
|
||||||
|
<item
|
||||||
|
android:drawable="@drawable/ic_battery_unknown"
|
||||||
|
android:maxLevel="300" />
|
||||||
</level-list>
|
</level-list>
|
||||||
|
Loading…
Reference in New Issue
Block a user