mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-18 20:05:53 -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
|
private val zimNoteDirectoryName: String
|
||||||
get() {
|
get() {
|
||||||
val noteDirectoryName = getTextAfterLastSlashWithoutExtension(zimFileName!!)
|
val noteDirectoryName = getTextAfterLastSlashWithoutExtension(zimFileName ?: "")
|
||||||
return (if (noteDirectoryName.isNotEmpty()) noteDirectoryName else zimFileTitle)!!
|
return (if (noteDirectoryName.isNotEmpty()) noteDirectoryName else zimFileTitle) ?: ""
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getArticleNotefileName(): String {
|
private fun getArticleNotefileName(): String {
|
||||||
@ -415,7 +415,6 @@ class AddNoteDialog : DialogFragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun dismissAddNoteDialog() {
|
private fun dismissAddNoteDialog() {
|
||||||
val dialog = dialog
|
|
||||||
dialog?.dismiss()
|
dialog?.dismiss()
|
||||||
closeKeyboard()
|
closeKeyboard()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user