minor persistence bugfix

This commit is contained in:
AndyScherzinger 2016-10-13 02:07:32 +02:00
parent 0889f8a69e
commit 6783a1c628
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -89,9 +89,9 @@ public class FolderSyncAdapter extends SectionedRecyclerViewAdapter<FolderSyncAd
holder.syncStatusButton.setOnClickListener(new View.OnClickListener() { holder.syncStatusButton.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
mListener.onSyncStatusToggleClick(section, mSyncFolderItems.get(section));
mSyncFolderItems.get(section).setEnabled(!mSyncFolderItems.get(section).isEnabled()); mSyncFolderItems.get(section).setEnabled(!mSyncFolderItems.get(section).isEnabled());
setSyncButtonActiveIcon(holder.syncStatusButton, mSyncFolderItems.get(section).isEnabled()); setSyncButtonActiveIcon(holder.syncStatusButton, mSyncFolderItems.get(section).isEnabled());
mListener.onSyncStatusToggleClick(section, mSyncFolderItems.get(section));
} }
}); });
setSyncButtonActiveIcon(holder.syncStatusButton, mSyncFolderItems.get(section).isEnabled()); setSyncButtonActiveIcon(holder.syncStatusButton, mSyncFolderItems.get(section).isEnabled());