mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 06:31:17 +00:00
Show number of messages selected
This commit is contained in:
parent
55f5faf794
commit
04dbed7e8d
2 changed files with 11 additions and 0 deletions
|
@ -76,6 +76,7 @@ import android.widget.CheckBox;
|
|||
import android.widget.ImageButton;
|
||||
import android.widget.SeekBar;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
@ -2612,6 +2613,11 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
selectionTracker.clearSelection();
|
||||
for (long id : ids)
|
||||
selectionTracker.select(id);
|
||||
|
||||
ToastEx.makeText(getContext(),
|
||||
getContext().getResources().getQuantityString(
|
||||
R.plurals.title_selected_messages, ids.size(), ids.size()),
|
||||
Toast.LENGTH_LONG).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -50,6 +50,11 @@
|
|||
<item quantity="other">%1$d new</item>
|
||||
</plurals>
|
||||
|
||||
<plurals name="title_selected_messages">
|
||||
<item quantity="one">Selected %1$d message</item>
|
||||
<item quantity="other">Selected %1$d messages</item>
|
||||
</plurals>
|
||||
|
||||
<plurals name="title_moving_messages">
|
||||
<item quantity="one">Move %1$d message to %2$s?</item>
|
||||
<item quantity="other">Move %1$d messages to %2$s?</item>
|
||||
|
|
Loading…
Reference in a new issue