Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,6 @@ public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
final var undoLiveData = mainViewModel.addNoteAndSync(deletedNote);
undoLiveData.observe(lifecycleOwner, (o) -> undoLiveData.removeObservers(lifecycleOwner));
}
String restoreSnackbarTitle = fullNotes.size() == 1
? context.getString(R.string.action_note_restored, fullNotes.get(0).getTitle())
: context.getResources().getQuantityString(R.plurals.bulk_notes_restored, fullNotes.size(), fullNotes.size());
BrandedSnackbar.make(view, restoreSnackbarTitle, Snackbar.LENGTH_SHORT)
.setAnchorView(anchorView)
.show();
})
.show();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import androidx.recyclerview.widget.RecyclerView;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;

import com.google.android.material.snackbar.Snackbar;

import it.niedermann.owncloud.notes.R;
import it.niedermann.owncloud.notes.NotesApplication;
Expand Down Expand Up @@ -150,9 +149,6 @@ public static void deleteNoteWithUndo(@NonNull Context context,
.setAction(R.string.action_undo, (View v) -> {
final var undoLiveData = mainViewModel.addNoteAndSync(dbNote);
undoLiveData.observe(lifecycleOwner, (o) -> undoLiveData.removeObservers(lifecycleOwner));
BrandedSnackbar.make(view, context.getString(R.string.action_note_restored, dbNote.getTitle()), Snackbar.LENGTH_SHORT)
.setAnchorView(anchorView)
.show();
})
.show();
});
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
<string name="simple_about">About</string>
<string name="simple_link">Link</string>
<string name="action_note_deleted">Deleted %1$s</string>
<string name="action_note_restored">Restored %1$s</string>
<string name="action_undo">Undo</string>
<string name="action_uncategorized">Uncategorized</string>
<string name="menu_delete">Delete</string>
Expand Down Expand Up @@ -387,10 +386,6 @@
<item quantity="one">Deleted one note</item>
<item quantity="other">Deleted %1$d notes</item>
</plurals>
<plurals name="bulk_notes_restored">
<item quantity="one">Restored one note</item>
<item quantity="other">Restored %1$d notes</item>
</plurals>
<plurals name="share_multiple">
<item quantity="one">Share content of %1$d note</item>
<item quantity="other">Share content of %1$d notes</item>
Expand Down
Loading