diff --git a/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/BaseNoteFragment.java b/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/BaseNoteFragment.java index 9c906849..f5009a26 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/BaseNoteFragment.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/BaseNoteFragment.java @@ -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; diff --git a/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/NotePreviewFragment.java b/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/NotePreviewFragment.java index c393ce80..e60e97b0 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/NotePreviewFragment.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/android/fragment/NotePreviewFragment.java @@ -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();