Merge pull request #350 from andOTP/fix-333

Fix all tags only selecting visible tags
This commit is contained in:
Jakob Nixdorf 2019-09-16 14:50:29 +02:00 committed by GitHub
commit 68df1793b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -591,10 +591,13 @@ public class MainActivity extends BaseActivity
settings.setAllTagsToggle(checkedTextView.isChecked());
for(int i = 0; i < tagsDrawerListView.getChildCount(); i++) {
CheckedTextView childCheckBox = (CheckedTextView)tagsDrawerListView.getChildAt(i);
CheckedTextView childCheckBox = (CheckedTextView) tagsDrawerListView.getChildAt(i);
childCheckBox.setChecked(checkedTextView.isChecked());
tagsDrawerAdapter.setTagState(childCheckBox.getText().toString(), childCheckBox.isChecked());
settings.setTagToggle(childCheckBox.getText().toString(), childCheckBox.isChecked());
}
for (String tag: tagsDrawerAdapter.getTags()) {
tagsDrawerAdapter.setTagState(tag, checkedTextView.isChecked());
settings.setTagToggle(tag, checkedTextView.isChecked());
}
if(checkedTextView.isChecked()) {