diff --git a/app/build.gradle b/app/build.gradle index c732f254..145ffd02 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -64,7 +64,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:603a8da576' + implementation 'com.github.SimpleMobileTools:Simple-Commons:ae8713396b' implementation 'com.github.tibbi:AndroidPdfViewer:e6a533125b' implementation 'com.github.Stericson:RootTools:df729dcb13' implementation 'com.github.Stericson:RootShell:1.6' diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/helpers/Config.kt index 7bb5e686..e3fb2338 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/helpers/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/helpers/Config.kt @@ -4,7 +4,6 @@ import android.content.Context import android.content.res.Configuration import com.simplemobiletools.commons.extensions.getInternalStoragePath import com.simplemobiletools.commons.helpers.BaseConfig -import com.simplemobiletools.commons.helpers.VIEW_TYPE_LIST import java.io.File class Config(context: Context) : BaseConfig(context) { @@ -76,10 +75,6 @@ class Config(context: Context) : BaseConfig(context) { get() = prefs.getFloat(EDITOR_TEXT_ZOOM, 1.2f) set(editorTextZoom) = prefs.edit().putFloat(EDITOR_TEXT_ZOOM, editorTextZoom).apply() - var viewType: Int - get() = prefs.getInt(VIEW_TYPE, VIEW_TYPE_LIST) - set(viewTypeFiles) = prefs.edit().putInt(VIEW_TYPE, viewTypeFiles).apply() - fun saveFolderViewType(path: String, value: Int) { if (path.isEmpty()) { viewType = value diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/helpers/Constants.kt index 8e29fc4b..ff9cab7e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/helpers/Constants.kt @@ -6,7 +6,6 @@ import com.simplemobiletools.commons.helpers.TAB_STORAGE_ANALYSIS import com.simplemobiletools.commons.models.FileDirItem import com.simplemobiletools.filemanager.pro.models.ListItem -const val PATH = "path" const val MAX_COLUMN_COUNT = 15 // shared preferences @@ -17,7 +16,6 @@ const val TEMPORARILY_SHOW_HIDDEN = "temporarily_show_hidden" const val IS_ROOT_AVAILABLE = "is_root_available" const val ENABLE_ROOT_ACCESS = "enable_root_access" const val EDITOR_TEXT_ZOOM = "editor_text_zoom" -const val VIEW_TYPE = "view_type" const val VIEW_TYPE_PREFIX = "view_type_folder_" const val FILE_COLUMN_CNT = "file_column_cnt" const val FILE_LANDSCAPE_COLUMN_CNT = "file_landscape_column_cnt"