From 8013a8b4d2b03886fbb341e25ede12ab8869a770 Mon Sep 17 00:00:00 2001 From: Shubert Munthali <87703131+ShubertMunthali@users.noreply.github.com> Date: Sun, 22 Oct 2023 12:12:21 +0200 Subject: [PATCH] Move constants --- .../taran/arkmemo/data/repositories/TextNotesRepo.kt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepo.kt b/app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepo.kt index 9bec972e..943a3fc3 100644 --- a/app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepo.kt +++ b/app/src/main/java/space/taran/arkmemo/data/repositories/TextNotesRepo.kt @@ -143,10 +143,9 @@ class TextNotesRepo @Inject constructor() { notes.remove(note) _textNotes.value = notes } +} + +private const val NOTE_EXT = "note" +private const val DUMMY_FILENAME = "Note" +private const val NEWLINE = "\n" - companion object { - private const val NOTE_EXT = "note" - private const val DUMMY_FILENAME = "Note" - private const val NEWLINE = "\n" - } -} \ No newline at end of file