Skip to content

Commit

Permalink
Merge pull request #290 from naz013/feature/Fix_note_click_on_note_wi…
Browse files Browse the repository at this point in the history
…dget

Fix note widget click
  • Loading branch information
naz013 authored Jan 18, 2025
2 parents 96826df + 6ec8c87 commit 6c38fb8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class PreviewNoteFragment : BaseNonToolbarFragment<FragmentNotePreviewBinding>()

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
viewModel.saveStatusBarColor(activity?.window?.statusBarColor ?: -1)
viewModel.isBgDark = isDark
Logger.i(TAG, "Opening the note preview screen for id: ${Logger.data(idFromIntent())}")
}
Expand Down Expand Up @@ -262,7 +263,6 @@ class PreviewNoteFragment : BaseNonToolbarFragment<FragmentNotePreviewBinding>()
}

private fun showNote(uiNotePreview: UiNotePreview) {
viewModel.saveStatusBarColor(activity?.window?.statusBarColor ?: -1)
showImages(uiNotePreview.images)
binding.noteText.text = uiNotePreview.text
binding.noteText.typeface = uiNotePreview.typeface
Expand Down
3 changes: 0 additions & 3 deletions app/src/main/res/navigation/home_nav.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
<action
android:id="@+id/action_actionHome_to_buildReminderFragment"
app:destination="@id/buildReminderFragment" />
<action
android:id="@+id/action_actionHome_to_previewNoteFragment"
app:destination="@id/previewNoteFragment" />
</fragment>

<fragment
Expand Down

0 comments on commit 6c38fb8

Please sign in to comment.