|
|
@ -57,6 +57,7 @@ public class ActivityWidgetUnified extends ActivityBase {
|
|
|
|
private CheckBox cbUnseen;
|
|
|
|
private CheckBox cbUnseen;
|
|
|
|
private CheckBox cbFlagged;
|
|
|
|
private CheckBox cbFlagged;
|
|
|
|
private CheckBox cbHighlight;
|
|
|
|
private CheckBox cbHighlight;
|
|
|
|
|
|
|
|
private CheckBox cbSeparatorLines;
|
|
|
|
private CheckBox cbSemiTransparent;
|
|
|
|
private CheckBox cbSemiTransparent;
|
|
|
|
private ViewButtonColor btnColor;
|
|
|
|
private ViewButtonColor btnColor;
|
|
|
|
private Spinner spFontSize;
|
|
|
|
private Spinner spFontSize;
|
|
|
@ -91,6 +92,7 @@ public class ActivityWidgetUnified extends ActivityBase {
|
|
|
|
boolean unseen = prefs.getBoolean("widget." + appWidgetId + ".unseen", false);
|
|
|
|
boolean unseen = prefs.getBoolean("widget." + appWidgetId + ".unseen", false);
|
|
|
|
boolean flagged = prefs.getBoolean("widget." + appWidgetId + ".flagged", false);
|
|
|
|
boolean flagged = prefs.getBoolean("widget." + appWidgetId + ".flagged", false);
|
|
|
|
boolean highlight = prefs.getBoolean("widget." + appWidgetId + ".highlight", false);
|
|
|
|
boolean highlight = prefs.getBoolean("widget." + appWidgetId + ".highlight", false);
|
|
|
|
|
|
|
|
boolean separators = prefs.getBoolean("widget." + appWidgetId + ".separators", true);
|
|
|
|
boolean semi = prefs.getBoolean("widget." + appWidgetId + ".semi", true);
|
|
|
|
boolean semi = prefs.getBoolean("widget." + appWidgetId + ".semi", true);
|
|
|
|
int background = prefs.getInt("widget." + appWidgetId + ".background", Color.TRANSPARENT);
|
|
|
|
int background = prefs.getInt("widget." + appWidgetId + ".background", Color.TRANSPARENT);
|
|
|
|
int font = prefs.getInt("widget." + appWidgetId + ".font", 0);
|
|
|
|
int font = prefs.getInt("widget." + appWidgetId + ".font", 0);
|
|
|
@ -107,6 +109,7 @@ public class ActivityWidgetUnified extends ActivityBase {
|
|
|
|
cbUnseen = findViewById(R.id.cbUnseen);
|
|
|
|
cbUnseen = findViewById(R.id.cbUnseen);
|
|
|
|
cbFlagged = findViewById(R.id.cbFlagged);
|
|
|
|
cbFlagged = findViewById(R.id.cbFlagged);
|
|
|
|
cbHighlight = findViewById(R.id.cbHighlight);
|
|
|
|
cbHighlight = findViewById(R.id.cbHighlight);
|
|
|
|
|
|
|
|
cbSeparatorLines = findViewById(R.id.cbSeparatorLines);
|
|
|
|
cbSemiTransparent = findViewById(R.id.cbSemiTransparent);
|
|
|
|
cbSemiTransparent = findViewById(R.id.cbSemiTransparent);
|
|
|
|
btnColor = findViewById(R.id.btnColor);
|
|
|
|
btnColor = findViewById(R.id.btnColor);
|
|
|
|
spFontSize = findViewById(R.id.spFontSize);
|
|
|
|
spFontSize = findViewById(R.id.spFontSize);
|
|
|
@ -177,6 +180,7 @@ public class ActivityWidgetUnified extends ActivityBase {
|
|
|
|
editor.putBoolean("widget." + appWidgetId + ".unseen", cbUnseen.isChecked());
|
|
|
|
editor.putBoolean("widget." + appWidgetId + ".unseen", cbUnseen.isChecked());
|
|
|
|
editor.putBoolean("widget." + appWidgetId + ".flagged", cbFlagged.isChecked());
|
|
|
|
editor.putBoolean("widget." + appWidgetId + ".flagged", cbFlagged.isChecked());
|
|
|
|
editor.putBoolean("widget." + appWidgetId + ".highlight", cbHighlight.isChecked());
|
|
|
|
editor.putBoolean("widget." + appWidgetId + ".highlight", cbHighlight.isChecked());
|
|
|
|
|
|
|
|
editor.putBoolean("widget." + appWidgetId + ".separators", cbSeparatorLines.isChecked());
|
|
|
|
editor.putBoolean("widget." + appWidgetId + ".semi", cbSemiTransparent.isChecked());
|
|
|
|
editor.putBoolean("widget." + appWidgetId + ".semi", cbSemiTransparent.isChecked());
|
|
|
|
editor.putInt("widget." + appWidgetId + ".background", btnColor.getColor());
|
|
|
|
editor.putInt("widget." + appWidgetId + ".background", btnColor.getColor());
|
|
|
|
editor.putInt("widget." + appWidgetId + ".font", tinyOut(font));
|
|
|
|
editor.putInt("widget." + appWidgetId + ".font", tinyOut(font));
|
|
|
@ -297,6 +301,7 @@ public class ActivityWidgetUnified extends ActivityBase {
|
|
|
|
cbUnseen.setChecked(unseen);
|
|
|
|
cbUnseen.setChecked(unseen);
|
|
|
|
cbFlagged.setChecked(flagged);
|
|
|
|
cbFlagged.setChecked(flagged);
|
|
|
|
cbHighlight.setChecked(highlight);
|
|
|
|
cbHighlight.setChecked(highlight);
|
|
|
|
|
|
|
|
cbSeparatorLines.setChecked(separators);
|
|
|
|
cbSemiTransparent.setChecked(semi);
|
|
|
|
cbSemiTransparent.setChecked(semi);
|
|
|
|
btnColor.setColor(background);
|
|
|
|
btnColor.setColor(background);
|
|
|
|
spFontSize.setSelection(tinyIn(font));
|
|
|
|
spFontSize.setSelection(tinyIn(font));
|
|
|
|