Enforce MethodParamPad
This commit is contained in:
parent
8f08bd1f6d
commit
b656cb91a2
|
@ -550,8 +550,9 @@ public class QueueFragment extends Fragment {
|
|||
final boolean isRead = item.isPlayed();
|
||||
DBWriter.markItemPlayed(FeedItem.PLAYED, false, item.getId());
|
||||
DBWriter.removeQueueItem(getActivity(), true, item);
|
||||
Snackbar snackbar = Snackbar.make
|
||||
(root, getString(item.hasMedia() ? R.string.marked_as_read_label: R.string.marked_as_read_no_media_label), Snackbar.LENGTH_LONG);
|
||||
Snackbar snackbar = Snackbar.make(root, getString(item.hasMedia()
|
||||
? R.string.marked_as_read_label : R.string.marked_as_read_no_media_label),
|
||||
Snackbar.LENGTH_LONG);
|
||||
snackbar.setAction(getString(R.string.undo), v -> {
|
||||
DBWriter.addQueueItemAt(getActivity(), item.getId(), position, false);
|
||||
if(!isRead) {
|
||||
|
|
|
@ -78,6 +78,7 @@
|
|||
<message key="ws.notPreceded"
|
||||
value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
|
||||
</module>
|
||||
<module name="MethodParamPad"/>
|
||||
<module name="NoWhitespaceBefore">
|
||||
<property name="tokens"
|
||||
value="COMMA, SEMI, POST_INC, POST_DEC, DOT, ELLIPSIS, METHOD_REF"/>
|
||||
|
|
Loading…
Reference in New Issue