Formatting
This commit is contained in:
@@ -32,8 +32,8 @@ public class StatusFilterPredicate implements Predicate<Status> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param context null makes the predicate pass automatically
|
* @param context null makes the predicate pass automatically
|
||||||
* @param action defines what the predicate should check:
|
* @param action defines what the predicate should check:
|
||||||
* status should not be hidden or should not display with warning
|
* status should not be hidden or should not display with warning
|
||||||
*/
|
*/
|
||||||
public StatusFilterPredicate(List<Filter> filters, Filter.FilterContext context, Filter.FilterAction action) {
|
public StatusFilterPredicate(List<Filter> filters, Filter.FilterContext context, Filter.FilterAction action) {
|
||||||
this.filters = filters;
|
this.filters = filters;
|
||||||
@@ -49,8 +49,8 @@ public class StatusFilterPredicate implements Predicate<Status> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param context null makes the predicate pass automatically
|
* @param context null makes the predicate pass automatically
|
||||||
* @param action defines what the predicate should check:
|
* @param action defines what the predicate should check:
|
||||||
* status should not be hidden or should not display with warning
|
* status should not be hidden or should not display with warning
|
||||||
*/
|
*/
|
||||||
public StatusFilterPredicate(String accountID, Filter.FilterContext context, Filter.FilterAction action) {
|
public StatusFilterPredicate(String accountID, Filter.FilterContext context, Filter.FilterAction action) {
|
||||||
this(AccountSessionManager.getInstance().getAccount(accountID).wordFilters.stream().filter(f -> f.context.contains(context)).collect(Collectors.toList()),
|
this(AccountSessionManager.getInstance().getAccount(accountID).wordFilters.stream().filter(f -> f.context.contains(context)).collect(Collectors.toList()),
|
||||||
@@ -67,9 +67,9 @@ public class StatusFilterPredicate implements Predicate<Status> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return whether the status should be displayed without being hidden/warned about.
|
* @return whether the status should be displayed without being hidden/warned about.
|
||||||
* will always return true if the context is null.
|
* will always return true if the context is null.
|
||||||
* true = display this status,
|
* true = display this status,
|
||||||
* false = filter this status
|
* false = filter this status
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean test(Status status) {
|
public boolean test(Status status) {
|
||||||
|
|||||||
@@ -77,5 +77,4 @@
|
|||||||
<string name="mo_setting_play_gif_summary">GIFs in Profilbildern und Emojis automatisch abspielen</string>
|
<string name="mo_setting_play_gif_summary">GIFs in Profilbildern und Emojis automatisch abspielen</string>
|
||||||
<string name="mo_settings_show_posts_without_alt">Zeige Medienbeiträge ohne Bildbeschreibung</string>
|
<string name="mo_settings_show_posts_without_alt">Zeige Medienbeiträge ohne Bildbeschreibung</string>
|
||||||
<string name="mo_settings_show_posts_without_alt_summary">Beiräge werden in allen Timelines ausgeblendet, können aber in Threads und Benachrichtungen ausgeklappt werden</string>
|
<string name="mo_settings_show_posts_without_alt_summary">Beiräge werden in allen Timelines ausgeblendet, können aber in Threads und Benachrichtungen ausgeklappt werden</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
@@ -88,7 +88,6 @@
|
|||||||
<string name="mo_setting_haptic_feedback_summary">Vibrate when interacting with posts</string>
|
<string name="mo_setting_haptic_feedback_summary">Vibrate when interacting with posts</string>
|
||||||
<string name="mo_swap_bookmark_with_reblog_summary">Bookmark or reblog posts from the notification</string>
|
<string name="mo_swap_bookmark_with_reblog_summary">Bookmark or reblog posts from the notification</string>
|
||||||
<string name="mo_settings_show_posts_without_alt_summary">Posts will be hidden in all timelines, but can be revealed in threads and notifications</string>
|
<string name="mo_settings_show_posts_without_alt_summary">Posts will be hidden in all timelines, but can be revealed in threads and notifications</string>
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
<string name="mo_notification_audience_settings">Notification Audience</string>
|
<string name="mo_notification_audience_settings">Notification Audience</string>
|
||||||
<string name="mo_settings_show_posts_without_alt">Show media posts with missing alt text</string>
|
<string name="mo_settings_show_posts_without_alt">Show media posts with missing alt text</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user