#623 - use db helper from BaseNoteFragment

This commit is contained in:
Simon Lenz 2020-01-16 20:49:21 +01:00
parent 8d57463148
commit a1ced561ab
2 changed files with 1 additions and 4 deletions

View file

@ -71,7 +71,7 @@ public abstract class BaseNoteFragment extends Fragment implements CategoryDialo
protected DBNote note;
@Nullable
private DBNote originalNote;
private NoteSQLiteOpenHelper db;
protected NoteSQLiteOpenHelper db;
private NoteFragmentListener listener;
private TextView activeTextView;

View file

@ -31,7 +31,6 @@ import butterknife.ButterKnife;
import it.niedermann.owncloud.notes.R;
import it.niedermann.owncloud.notes.android.activity.EditNoteActivity;
import it.niedermann.owncloud.notes.model.DBNote;
import it.niedermann.owncloud.notes.persistence.NoteSQLiteOpenHelper;
import it.niedermann.owncloud.notes.util.MarkDownUtil;
import it.niedermann.owncloud.notes.util.NoteLinksUtils;
import rx.Subscriber;
@ -45,8 +44,6 @@ public class NotePreviewFragment extends BaseNoteFragment {
@BindView(R.id.single_note_content)
RxMDTextView noteContent;
private NoteSQLiteOpenHelper db = NoteSQLiteOpenHelper.getInstance(getActivity());
public static NotePreviewFragment newInstance(long accountId, long noteId) {
NotePreviewFragment f = new NotePreviewFragment();
Bundle b = new Bundle();