diff --git a/app/src/main/java/eu/faircode/email/AdapterNavAccount.java b/app/src/main/java/eu/faircode/email/AdapterNavAccount.java index a00e338690..0b6f668fdf 100644 --- a/app/src/main/java/eu/faircode/email/AdapterNavAccount.java +++ b/app/src/main/java/eu/faircode/email/AdapterNavAccount.java @@ -29,6 +29,7 @@ import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; +import android.widget.Toast; import androidx.annotation.NonNull; import androidx.lifecycle.LifecycleOwner; @@ -59,6 +60,8 @@ public class AdapterNavAccount extends RecyclerView.Adapter QUOTA_WARNING) { + ivWarning.setEnabled(true); + ivWarning.setImageResource(R.drawable.twotone_disc_full_24); + ivWarning.setVisibility(View.VISIBLE); + } else + ivWarning.setVisibility(View.GONE); } @Override public void onClick(View v) { + if (v.getId() == R.id.ivWarning) { + ToastEx.makeText(context, R.string.title_legend_quota, Toast.LENGTH_LONG).show(); + return; + } + int pos = getAdapterPosition(); if (pos == RecyclerView.NO_POSITION) return; diff --git a/app/src/main/res/drawable/twotone_disc_full_24.xml b/app/src/main/res/drawable/twotone_disc_full_24.xml new file mode 100644 index 0000000000..97e4d59d85 --- /dev/null +++ b/app/src/main/res/drawable/twotone_disc_full_24.xml @@ -0,0 +1,15 @@ + + + + diff --git a/app/src/main/res/layout/fragment_legend_synchronization.xml b/app/src/main/res/layout/fragment_legend_synchronization.xml index e7b6a5a1f0..582bd8fe59 100644 --- a/app/src/main/res/layout/fragment_legend_synchronization.xml +++ b/app/src/main/res/layout/fragment_legend_synchronization.xml @@ -210,6 +210,50 @@ app:layout_constraintStart_toEndOf="@id/ivDisconnected" app:layout_constraintTop_toTopOf="@id/ivDisconnected" /> + + + + + + + + + app:srcCompat="@drawable/twotone_disc_full_24" /> - - - - + app:layout_constraintStart_toEndOf="@id/ivQuota" + app:layout_constraintTop_toTopOf="@id/ivQuota" /> Synchronize off Synchronize periodically Disconnected - Waiting after failure Connecting Connected + Waiting after failure + Mailbox almost full Executing operations Synchronizing Downloading