mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
remove some spotbugs warnings
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
f627f3d976
commit
17828cb3b4
3 changed files with 2 additions and 12 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue