mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
fix saving transparent widget background color
This commit is contained in:
@@ -77,8 +77,8 @@ public class MyWidgetConfigure extends AppCompatActivity implements Calendar {
|
|||||||
textColorWithoutTransparency = prefs.getInt(Constants.WIDGET_TEXT_COLOR, Color.WHITE);
|
textColorWithoutTransparency = prefs.getInt(Constants.WIDGET_TEXT_COLOR, Color.WHITE);
|
||||||
updateTextColors();
|
updateTextColors();
|
||||||
|
|
||||||
bgColor = prefs.getInt(Constants.WIDGET_BG_COLOR, 0);
|
bgColor = prefs.getInt(Constants.WIDGET_BG_COLOR, 1);
|
||||||
if (bgColor == 0) {
|
if (bgColor == 1) {
|
||||||
bgColor = Color.BLACK;
|
bgColor = Color.BLACK;
|
||||||
bgAlpha = .5f;
|
bgAlpha = .5f;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user