Skip to content

Commit

Permalink
chore: Fixed two minor kotlin warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Oct 8, 2023
1 parent dae6629 commit 66602f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/termux/styling/TermuxStyleActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ class TermuxStyleActivity : Activity() {
val destinationFile = File(termuxDir, outputFile).canonicalFile
// Fix for if the user has messed up with chmod:
destinationFile.setWritable(true)
destinationFile.parentFile.setWritable(true)
destinationFile.parentFile.setExecutable(true)
destinationFile.parentFile?.setWritable(true)
destinationFile.parentFile?.setExecutable(true)

val defaultChoice = mCurrentSelectable!!.fileName == DEFAULT_FILENAME
val atomicFile = AtomicFile(destinationFile)
Expand Down

0 comments on commit 66602f7

Please sign in to comment.