updating commons

This commit is contained in:
tibbi 2023-07-21 21:45:56 +02:00
parent 0aa0094e2c
commit a9438b2c42
3 changed files with 1 additions and 8 deletions

View File

@ -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'

View File

@ -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

View File

@ -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"