mirror of
				https://github.com/SimpleMobileTools/Simple-Calculator.git
				synced 2025-06-05 21:49:13 +02:00 
			
		
		
		
	fix saving fix saving transparent widget background color
This commit is contained in:
		| @@ -53,8 +53,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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user