mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-15 07:52:02 +02:00
fix saving transparent widget background color
This commit is contained in:
parent
a28ed90bc6
commit
7c8c0ba535
@ -50,8 +50,8 @@ public class MyWidgetConfigure extends AppCompatActivity {
|
|||||||
|
|
||||||
private void initVariables() {
|
private void initVariables() {
|
||||||
final SharedPreferences prefs = getSharedPreferences(Constants.PREFS, Context.MODE_PRIVATE);
|
final SharedPreferences prefs = getSharedPreferences(Constants.PREFS, Context.MODE_PRIVATE);
|
||||||
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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user