mirror of
https://github.com/nextcloud/android.git
synced 2024-12-01 03:43:43 +03:00
satisfy codacy
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
b6c528763c
commit
46f916b1a2
2 changed files with 6 additions and 2 deletions
|
@ -227,7 +227,7 @@ public class PreviewTextFragment extends FileFragment implements SearchView.OnQu
|
|||
mHandler.removeCallbacksAndMessages(null);
|
||||
|
||||
if (mOriginalText != null) {
|
||||
if (getActivity() != null && getActivity() instanceof FileDisplayActivity) {
|
||||
if (getActivity() instanceof FileDisplayActivity) {
|
||||
FileDisplayActivity fileDisplayActivity = (FileDisplayActivity) getActivity();
|
||||
fileDisplayActivity.setSearchQuery(query);
|
||||
}
|
||||
|
|
|
@ -29,7 +29,11 @@ import java.util.regex.Pattern;
|
|||
/**
|
||||
* Helper class for handling and manipulating strings.
|
||||
*/
|
||||
public class StringUtils {
|
||||
public final class StringUtils {
|
||||
|
||||
private StringUtils() {
|
||||
// prevent class from being constructed
|
||||
}
|
||||
|
||||
public static String searchAndColor(String text, String searchText, @ColorInt int color) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue