|
|
@ -73,7 +73,7 @@ public class ListWidgetConfigActivity extends AppCompatActivity { |
|
|
|
@ViewById |
|
|
|
@ViewById |
|
|
|
protected Spinner serverSpinner, filterSpinner, sortSpinner; |
|
|
|
protected Spinner serverSpinner, filterSpinner, sortSpinner; |
|
|
|
@ViewById |
|
|
|
@ViewById |
|
|
|
protected CheckBox reverseorderCheckBox, showstatusCheckBox, darkthemeCheckBox; |
|
|
|
protected CheckBox reverseorderCheckBox, showstatusCheckBox; |
|
|
|
@ViewById |
|
|
|
@ViewById |
|
|
|
protected TextView filterText, serverText, errorText; |
|
|
|
protected TextView filterText, serverText, errorText; |
|
|
|
@ViewById |
|
|
|
@ViewById |
|
|
@ -127,8 +127,7 @@ public class ListWidgetConfigActivity extends AppCompatActivity { |
|
|
|
TorrentsSortBy sortBy = ((SortByListItem) sortSpinner.getSelectedItem()).getSortBy(); |
|
|
|
TorrentsSortBy sortBy = ((SortByListItem) sortSpinner.getSelectedItem()).getSortBy(); |
|
|
|
boolean reverseSort = reverseorderCheckBox.isChecked(); |
|
|
|
boolean reverseSort = reverseorderCheckBox.isChecked(); |
|
|
|
boolean showstatus = showstatusCheckBox.isChecked(); |
|
|
|
boolean showstatus = showstatusCheckBox.isChecked(); |
|
|
|
boolean useDarkTheme = darkthemeCheckBox.isChecked(); |
|
|
|
ListWidgetConfig config = new ListWidgetConfig(server, statusType, sortBy, reverseSort, showstatus); |
|
|
|
ListWidgetConfig config = new ListWidgetConfig(server, statusType, sortBy, reverseSort, showstatus, useDarkTheme); |
|
|
|
|
|
|
|
applicationSettings.setWidgetConfig(appWidgetId, config); |
|
|
|
applicationSettings.setWidgetConfig(appWidgetId, config); |
|
|
|
|
|
|
|
|
|
|
|
// Return the widget configuration result
|
|
|
|
// Return the widget configuration result
|
|
|
|