mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-23 13:26:15 +03:00
#623 - use db helper from BaseNoteFragment
This commit is contained in:
parent
8d57463148
commit
a1ced561ab
2 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue