INNER CODE UNIT · Kotlin

navigateUp

romanvht/ByeByeDPI · app/src/main/java/io/github/romanvht/byedpi/activities/FileActivity.kt:153

    private fun navigateUp() {
        val directory = currentDirectory
        if (directory == null) {
            finish()
            return
        }

        val parent = directory.parentFile
        if (parent != null && isInsideRoots(parent)) {
            showDirectory(parent)
        } else {
            showRoots()
        }
    }

    private fun showRoots() {
        currentDirectory = null
        pathView.setText(R.string.storage_locations)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…