mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-03 00:35:39 +00:00
Fix for broken build
// FREEBIE
This commit is contained in:
parent
849c346a21
commit
5704fad7cc
@ -236,15 +236,12 @@ public class ConversationFragment extends Fragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void handleDeleteMessages(final Set<MessageRecord> messageRecords) {
|
private void handleDeleteMessages(final Set<MessageRecord> messageRecords) {
|
||||||
int messagesCount = messageRecords.size();
|
int messagesCount = messageRecords.size();
|
||||||
AlertDialogWrapper.Builder builder = new AlertDialogWrapper.Builder(getActivity());
|
AlertDialogWrapper.Builder builder = new AlertDialogWrapper.Builder(getActivity());
|
||||||
|
|
||||||
builder.setIconAttribute(R.attr.dialog_alert_icon);
|
builder.setIconAttribute(R.attr.dialog_alert_icon);
|
||||||
builder.setTitle(getContext().getResources().getQuantityString(
|
builder.setTitle(getActivity().getResources().getQuantityString(R.plurals.ConversationFragment_delete_selected_messages, messagesCount, messagesCount));
|
||||||
R.plurals.ConversationFragment_delete_selected_messages,
|
builder.setMessage(getActivity().getResources().getQuantityString(R.plurals.ConversationFragment_this_will_permanently_delete_all_n_selected_messages, messagesCount, messagesCount));
|
||||||
messagesCount, messagesCount));
|
|
||||||
builder.setMessage(getContext().getResources().getQuantityString(
|
|
||||||
R.plurals.ConversationFragment_this_will_permanently_delete_all_n_selected_messages,
|
|
||||||
messagesCount, messagesCount));
|
|
||||||
builder.setCancelable(true);
|
builder.setCancelable(true);
|
||||||
|
|
||||||
builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
|
builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
|
||||||
@ -353,7 +350,8 @@ public class ConversationFragment extends Fragment
|
|||||||
|
|
||||||
private class ConversationFragmentItemClickListener implements ItemClickListener {
|
private class ConversationFragmentItemClickListener implements ItemClickListener {
|
||||||
|
|
||||||
@Override public void onItemClick(ConversationItem item) {
|
@Override
|
||||||
|
public void onItemClick(ConversationItem item) {
|
||||||
if (actionMode != null) {
|
if (actionMode != null) {
|
||||||
MessageRecord messageRecord = item.getMessageRecord();
|
MessageRecord messageRecord = item.getMessageRecord();
|
||||||
((ConversationAdapter) list.getAdapter()).toggleSelection(messageRecord);
|
((ConversationAdapter) list.getAdapter()).toggleSelection(messageRecord);
|
||||||
@ -363,7 +361,8 @@ public class ConversationFragment extends Fragment
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public void onItemLongClick(ConversationItem item) {
|
@Override
|
||||||
|
public void onItemLongClick(ConversationItem item) {
|
||||||
if (actionMode == null) {
|
if (actionMode == null) {
|
||||||
((ConversationAdapter) list.getAdapter()).toggleSelection(item.getMessageRecord());
|
((ConversationAdapter) list.getAdapter()).toggleSelection(item.getMessageRecord());
|
||||||
list.getAdapter().notifyDataSetChanged();
|
list.getAdapter().notifyDataSetChanged();
|
||||||
|
@ -174,12 +174,10 @@ public class ConversationListFragment extends Fragment
|
|||||||
int conversationsCount = getListAdapter().getBatchSelections().size();
|
int conversationsCount = getListAdapter().getBatchSelections().size();
|
||||||
AlertDialogWrapper.Builder alert = new AlertDialogWrapper.Builder(getActivity());
|
AlertDialogWrapper.Builder alert = new AlertDialogWrapper.Builder(getActivity());
|
||||||
alert.setIconAttribute(R.attr.dialog_alert_icon);
|
alert.setIconAttribute(R.attr.dialog_alert_icon);
|
||||||
alert.setTitle(getContext().getResources().getQuantityString(
|
alert.setTitle(getActivity().getResources().getQuantityString(R.plurals.ConversationListFragment_delete_selected_conversations,
|
||||||
R.plurals.ConversationListFragment_delete_selected_conversations,
|
conversationsCount, conversationsCount));
|
||||||
conversationsCount, conversationsCount));
|
alert.setMessage(getActivity().getResources().getQuantityString(R.plurals.ConversationListFragment_this_will_permanently_delete_all_n_selected_conversations,
|
||||||
alert.setMessage(getContext().getResources().getQuantityString(
|
conversationsCount, conversationsCount));
|
||||||
R.plurals.ConversationListFragment_this_will_permanently_delete_all_n_selected_conversations,
|
|
||||||
conversationsCount, conversationsCount));
|
|
||||||
alert.setCancelable(true);
|
alert.setCancelable(true);
|
||||||
|
|
||||||
alert.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {
|
alert.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user