Fix ProgressCard background color

This commit is contained in:
alex 2018-01-19 13:43:26 +02:00
parent 30da28e60c
commit afed3ebaa0
2 changed files with 6 additions and 2 deletions

View file

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="@dimen/context_img_card_width"
android:layout_height="@dimen/context_img_card_height"
android:background="?attr/bg_card"
android:gravity="center"
android:orientation="vertical">
android:orientation="vertical"
tools:background="?attr/bg_card">
<ProgressBar
android:id="@+id/progress"

View file

@ -1,5 +1,6 @@
package net.osmand.plus.mapcontextmenu.builders.cards;
import net.osmand.AndroidUtils;
import net.osmand.plus.R;
import net.osmand.plus.activities.MapActivity;
@ -16,5 +17,7 @@ public class ProgressCard extends AbstractCard {
@Override
public void update() {
boolean night = getMyApplication().getDaynightHelper().isNightModeForMapControls();
AndroidUtils.setBackgroundColor(getMapActivity(), view, night, R.color.bg_color_light, R.color.bg_color_dark);
}
}