minor code style formatting
This commit is contained in:
parent
b503e0523b
commit
f92c4962f5
2 changed files with 15 additions and 4 deletions
|
@ -27,6 +27,7 @@
|
||||||
<uses-permission
|
<uses-permission
|
||||||
android:name="android.permission.ACCESS_NETWORK_STATE"
|
android:name="android.permission.ACCESS_NETWORK_STATE"
|
||||||
tools:node="remove" />
|
tools:node="remove" />
|
||||||
|
|
||||||
<uses-permission
|
<uses-permission
|
||||||
android:name="android.permission.CAMERA"
|
android:name="android.permission.CAMERA"
|
||||||
tools:node="remove" />
|
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
|
private fun getDefaultDirectoryColumnCount() = context.resources.getInteger(
|
||||||
else R.integer.directory_columns_vertical_scroll)
|
if (scrollHorizontally) {
|
||||||
|
R.integer.directory_columns_horizontal_scroll
|
||||||
|
} else {
|
||||||
|
R.integer.directory_columns_vertical_scroll
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
var mediaColumnCnt: Int
|
var mediaColumnCnt: Int
|
||||||
get() = prefs.getInt(getMediaColumnsField(), getDefaultMediaColumnCount())
|
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
|
private fun getDefaultMediaColumnCount() = context.resources.getInteger(
|
||||||
else R.integer.media_columns_vertical_scroll)
|
if (scrollHorizontally) {
|
||||||
|
R.integer.media_columns_horizontal_scroll
|
||||||
|
} else {
|
||||||
|
R.integer.media_columns_vertical_scroll
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
var albumCovers: String
|
var albumCovers: String
|
||||||
get() = prefs.getString(ALBUM_COVERS, "")!!
|
get() = prefs.getString(ALBUM_COVERS, "")!!
|
||||||
|
|
Loading…
Reference in a new issue