ComboFragment: hack to make battery display look pretty before init.
This commit is contained in:
parent
355a973727
commit
fb65aca081
2 changed files with 2 additions and 1 deletions
|
@ -107,6 +107,7 @@ public class ComboFragment extends SubscriberFragment implements View.OnClickLis
|
|||
|
||||
if (plugin.isInitialized()) {
|
||||
// battery
|
||||
batteryView.setTextSize(20);
|
||||
if (ps.batteryState == PumpState.EMPTY) {
|
||||
batteryView.setText("{fa-battery-empty}");
|
||||
batteryView.setTextColor(Color.RED);
|
||||
|
|
|
@ -142,7 +142,7 @@
|
|||
android:paddingLeft="5dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:text=""
|
||||
android:textSize="20sp" />
|
||||
android:textSize="14sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
Loading…
Reference in a new issue