Show number of messages selected

pull/160/head
M66B 6 years ago
parent 55f5faf794
commit 04dbed7e8d

@ -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…
Cancel
Save