- fixed app crash when gson can not deserialize note

- create checklist notes if user paste note with new line char
This commit is contained in:
Pavol Franek
2020-03-01 16:53:09 +01:00
parent 86714229b4
commit 7b12650db9
4 changed files with 75 additions and 68 deletions

View File

@ -2,8 +2,11 @@ package com.simplemobiletools.notes.pro.extensions
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import com.simplemobiletools.notes.pro.BuildConfig
import com.simplemobiletools.notes.pro.helpers.Config
val Fragment.config: Config? get() = if (context != null) Config.newInstance(context!!) else null
val Fragment.requiredActivity: FragmentActivity get() = this.activity!!
val Fragment.isDebug get(): Boolean = BuildConfig.DEBUG