fix saving transparent widget background color

This commit is contained in:
tibbi 2016-05-31 19:44:48 +02:00
parent d849b2f686
commit 9262b35600

View file

@ -60,8 +60,8 @@ public class MyWidgetConfigure extends AppCompatActivity {
private void initVariables() {
final SharedPreferences prefs = getSharedPreferences(Constants.PREFS, Context.MODE_PRIVATE);
bgColor = prefs.getInt(Constants.WIDGET_BG_COLOR, 0);
if (bgColor == 0) {
bgColor = prefs.getInt(Constants.WIDGET_BG_COLOR, 1);
if (bgColor == 1) {
bgColor = Color.BLACK;
bgAlpha = .5f;
} else {