mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-18 03:45:33 -04:00
removed double bang operator and formated code
This commit is contained in:
parent
b157a08a20
commit
3fe693badd
@ -137,8 +137,8 @@ class AddNoteDialog : DialogFragment() {
|
||||
|
||||
private val zimNoteDirectoryName: String
|
||||
get() {
|
||||
val noteDirectoryName = getTextAfterLastSlashWithoutExtension(zimFileName!!)
|
||||
return (if (noteDirectoryName.isNotEmpty()) noteDirectoryName else zimFileTitle)!!
|
||||
val noteDirectoryName = getTextAfterLastSlashWithoutExtension(zimFileName ?: "")
|
||||
return (if (noteDirectoryName.isNotEmpty()) noteDirectoryName else zimFileTitle) ?: ""
|
||||
}
|
||||
|
||||
private fun getArticleNotefileName(): String {
|
||||
@ -415,7 +415,6 @@ class AddNoteDialog : DialogFragment() {
|
||||
}
|
||||
|
||||
private fun dismissAddNoteDialog() {
|
||||
val dialog = dialog
|
||||
dialog?.dismiss()
|
||||
closeKeyboard()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user