Revert "Changed periodic sync icons"

This reverts commit 936c71bb2c.
This commit is contained in:
M66B
2023-01-26 21:23:27 +01:00
parent 205bff0e83
commit 6d7d402681

View File

@@ -276,13 +276,8 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
ivState.setImageResource(R.drawable.twotone_cancel_24);
ivState.setContentDescription(context.getString(R.string.title_legend_closing));
} else if (folder.state == null) {
if (folder.poll) {
ivState.setImageResource(R.drawable.twotone_hourglass_top_24);
ivState.setContentDescription(context.getString(R.string.title_legend_synchronize_poll));
} else {
ivState.setImageResource(R.drawable.twotone_cloud_off_24);
ivState.setContentDescription(context.getString(R.string.title_legend_disconnected));
}
ivState.setImageResource(R.drawable.twotone_cloud_off_24);
ivState.setContentDescription(context.getString(R.string.title_legend_disconnected));
} else
ivState.setImageResource(R.drawable.twotone_warning_24);
} else {
@@ -402,10 +397,17 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
a.append(NF.format(folder.keep_days));
tvAfter.setText(a.toString());
ibSync.setImageResource(folder.synchronize
? R.drawable.twotone_sync_24 : R.drawable.twotone_sync_disabled_24);
ibSync.setContentDescription(context.getString(folder.synchronize
? R.string.title_legend_synchronize_on : R.string.title_legend_synchronize_off));
if (folder.synchronize) {
ibSync.setImageResource(folder.poll
? R.drawable.twotone_hourglass_top_24
: R.drawable.twotone_sync_24);
ibSync.setContentDescription(context.getString(folder.poll
? R.string.title_legend_synchronize_poll
: R.string.title_legend_synchronize_on));
} else {
ibSync.setImageResource(R.drawable.twotone_sync_disabled_24);
ibSync.setContentDescription(context.getString(R.string.title_legend_synchronize_off));
}
}
ibSync.setImageTintList(ColorStateList.valueOf(
folder.synchronize && folder.initialize != 0 &&