remove some spotbugs warnings

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2022-03-23 09:02:31 +01:00 committed by Álvaro Brey (Rebase PR Action)
parent f627f3d976
commit 17828cb3b4
3 changed files with 2 additions and 12 deletions

View file

@ -144,8 +144,6 @@ public class ReceiveExternalFilesActivity extends FileActivity
@Inject AppPreferences preferences;
@Inject LocalBroadcastManager localBroadcastManager;
@Inject ThemeColorUtils themeColorUtils;
@Inject ThemeTextInputUtils themeTextInputUtils;
private AccountManager mAccountManager;
private Stack<String> mParents = new Stack<>();
private List<Parcelable> mStreamsToUpload;

View file

@ -228,7 +228,7 @@ public class PreviewTextFileFragment extends PreviewTextFragment {
if (textView != null) {
originalText = stringWriter.toString();
setText(textView, originalText, getFile(), requireActivity(), themeColorUtils);
setText(textView, originalText, getFile(), requireActivity(), false, false, themeColorUtils);
if (searchView != null) {
searchView.setOnQueryTextListener(PreviewTextFileFragment.this);

View file

@ -174,7 +174,7 @@ public abstract class PreviewTextFragment extends FileFragment implements Search
resources.getColor(R.color.primary));
binding.textPreview.setText(Html.fromHtml(coloredText.replace("\n", "<br \\>")));
} else {
setText(binding.textPreview, originalText, getFile(), activity, themeColorUtils);
setText(binding.textPreview, originalText, getFile(), activity, false, false, themeColorUtils);
}
}
@ -219,14 +219,6 @@ public abstract class PreviewTextFragment extends FileFragment implements Search
requireActivity().runOnUiThread(() -> requireActivity().onBackPressed());
}
public void setText(TextView textView,
String text,
OCFile file,
Activity activity,
ThemeColorUtils themeColorUtils) {
setText(textView, text, file, activity, false, false, themeColorUtils);
}
public static void setText(TextView textView,
@Nullable String text,
@Nullable OCFile file,