ComboFragment: hack to make battery display look pretty before init.

This commit is contained in:
Johannes Mockenhaupt 2017-11-11 16:13:06 +01:00
parent 355a973727
commit fb65aca081
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
2 changed files with 2 additions and 1 deletions

View file

@ -107,6 +107,7 @@ public class ComboFragment extends SubscriberFragment implements View.OnClickLis
if (plugin.isInitialized()) { if (plugin.isInitialized()) {
// battery // battery
batteryView.setTextSize(20);
if (ps.batteryState == PumpState.EMPTY) { if (ps.batteryState == PumpState.EMPTY) {
batteryView.setText("{fa-battery-empty}"); batteryView.setText("{fa-battery-empty}");
batteryView.setTextColor(Color.RED); batteryView.setTextColor(Color.RED);

View file

@ -142,7 +142,7 @@
android:paddingLeft="5dp" android:paddingLeft="5dp"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:text="" android:text=""
android:textSize="20sp" /> android:textSize="14sp" />
</LinearLayout> </LinearLayout>