mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
updating commons
This commit is contained in:
@ -64,7 +64,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:603a8da576'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:ae8713396b'
|
||||||
implementation 'com.github.tibbi:AndroidPdfViewer:e6a533125b'
|
implementation 'com.github.tibbi:AndroidPdfViewer:e6a533125b'
|
||||||
implementation 'com.github.Stericson:RootTools:df729dcb13'
|
implementation 'com.github.Stericson:RootTools:df729dcb13'
|
||||||
implementation 'com.github.Stericson:RootShell:1.6'
|
implementation 'com.github.Stericson:RootShell:1.6'
|
||||||
|
@ -4,7 +4,6 @@ import android.content.Context
|
|||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
import com.simplemobiletools.commons.extensions.getInternalStoragePath
|
import com.simplemobiletools.commons.extensions.getInternalStoragePath
|
||||||
import com.simplemobiletools.commons.helpers.BaseConfig
|
import com.simplemobiletools.commons.helpers.BaseConfig
|
||||||
import com.simplemobiletools.commons.helpers.VIEW_TYPE_LIST
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
class Config(context: Context) : BaseConfig(context) {
|
class Config(context: Context) : BaseConfig(context) {
|
||||||
@ -76,10 +75,6 @@ class Config(context: Context) : BaseConfig(context) {
|
|||||||
get() = prefs.getFloat(EDITOR_TEXT_ZOOM, 1.2f)
|
get() = prefs.getFloat(EDITOR_TEXT_ZOOM, 1.2f)
|
||||||
set(editorTextZoom) = prefs.edit().putFloat(EDITOR_TEXT_ZOOM, editorTextZoom).apply()
|
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) {
|
fun saveFolderViewType(path: String, value: Int) {
|
||||||
if (path.isEmpty()) {
|
if (path.isEmpty()) {
|
||||||
viewType = value
|
viewType = value
|
||||||
|
@ -6,7 +6,6 @@ import com.simplemobiletools.commons.helpers.TAB_STORAGE_ANALYSIS
|
|||||||
import com.simplemobiletools.commons.models.FileDirItem
|
import com.simplemobiletools.commons.models.FileDirItem
|
||||||
import com.simplemobiletools.filemanager.pro.models.ListItem
|
import com.simplemobiletools.filemanager.pro.models.ListItem
|
||||||
|
|
||||||
const val PATH = "path"
|
|
||||||
const val MAX_COLUMN_COUNT = 15
|
const val MAX_COLUMN_COUNT = 15
|
||||||
|
|
||||||
// shared preferences
|
// shared preferences
|
||||||
@ -17,7 +16,6 @@ const val TEMPORARILY_SHOW_HIDDEN = "temporarily_show_hidden"
|
|||||||
const val IS_ROOT_AVAILABLE = "is_root_available"
|
const val IS_ROOT_AVAILABLE = "is_root_available"
|
||||||
const val ENABLE_ROOT_ACCESS = "enable_root_access"
|
const val ENABLE_ROOT_ACCESS = "enable_root_access"
|
||||||
const val EDITOR_TEXT_ZOOM = "editor_text_zoom"
|
const val EDITOR_TEXT_ZOOM = "editor_text_zoom"
|
||||||
const val VIEW_TYPE = "view_type"
|
|
||||||
const val VIEW_TYPE_PREFIX = "view_type_folder_"
|
const val VIEW_TYPE_PREFIX = "view_type_folder_"
|
||||||
const val FILE_COLUMN_CNT = "file_column_cnt"
|
const val FILE_COLUMN_CNT = "file_column_cnt"
|
||||||
const val FILE_LANDSCAPE_COLUMN_CNT = "file_landscape_column_cnt"
|
const val FILE_LANDSCAPE_COLUMN_CNT = "file_landscape_column_cnt"
|
||||||
|
Reference in New Issue
Block a user