minor code style formatting
This commit is contained in:
parent
b503e0523b
commit
f92c4962f5
|
@ -27,6 +27,7 @@
|
|||
<uses-permission
|
||||
android:name="android.permission.ACCESS_NETWORK_STATE"
|
||||
tools:node="remove" />
|
||||
|
||||
<uses-permission
|
||||
android:name="android.permission.CAMERA"
|
||||
tools:node="remove" />
|
||||
|
|
|
@ -241,8 +241,13 @@ class Config(context: Context) : BaseConfig(context) {
|
|||
}
|
||||
}
|
||||
|
||||
private fun getDefaultDirectoryColumnCount() = context.resources.getInteger(if (scrollHorizontally) R.integer.directory_columns_horizontal_scroll
|
||||
else R.integer.directory_columns_vertical_scroll)
|
||||
private fun getDefaultDirectoryColumnCount() = context.resources.getInteger(
|
||||
if (scrollHorizontally) {
|
||||
R.integer.directory_columns_horizontal_scroll
|
||||
} else {
|
||||
R.integer.directory_columns_vertical_scroll
|
||||
}
|
||||
)
|
||||
|
||||
var mediaColumnCnt: Int
|
||||
get() = prefs.getInt(getMediaColumnsField(), getDefaultMediaColumnCount())
|
||||
|
@ -265,8 +270,13 @@ class Config(context: Context) : BaseConfig(context) {
|
|||
}
|
||||
}
|
||||
|
||||
private fun getDefaultMediaColumnCount() = context.resources.getInteger(if (scrollHorizontally) R.integer.media_columns_horizontal_scroll
|
||||
else R.integer.media_columns_vertical_scroll)
|
||||
private fun getDefaultMediaColumnCount() = context.resources.getInteger(
|
||||
if (scrollHorizontally) {
|
||||
R.integer.media_columns_horizontal_scroll
|
||||
} else {
|
||||
R.integer.media_columns_vertical_scroll
|
||||
}
|
||||
)
|
||||
|
||||
var albumCovers: String
|
||||
get() = prefs.getString(ALBUM_COVERS, "")!!
|
||||
|
|
Loading…
Reference in New Issue