Remove leftover System.out.println

This commit is contained in:
Dominik Stadler 2019-03-31 11:45:18 +02:00
parent 880f63ab3a
commit 062fe21567
1 changed files with 0 additions and 3 deletions

View File

@ -376,20 +376,17 @@ class Config(context: Context) : BaseConfig(context) {
set(bottomActions) = prefs.edit().putBoolean(BOTTOM_ACTIONS, bottomActions).apply() set(bottomActions) = prefs.edit().putBoolean(BOTTOM_ACTIONS, bottomActions).apply()
fun removeLastVideoPosition(path: String) { fun removeLastVideoPosition(path: String) {
System.out.println("Remove position: $path")
prefs.edit().remove(LAST_VIDEO_POSITION_PREFIX + path.toLowerCase()).apply() prefs.edit().remove(LAST_VIDEO_POSITION_PREFIX + path.toLowerCase()).apply()
} }
fun saveLastVideoPosition(path: String, value: Int) { fun saveLastVideoPosition(path: String, value: Int) {
if (!path.isEmpty()) { if (!path.isEmpty()) {
System.out.println("Saving position: $path at $value")
prefs.edit().putInt(LAST_VIDEO_POSITION_PREFIX + path.toLowerCase(), value).apply() prefs.edit().putInt(LAST_VIDEO_POSITION_PREFIX + path.toLowerCase(), value).apply()
} }
} }
fun getLastVideoPosition(path: String): Int { fun getLastVideoPosition(path: String): Int {
val value = prefs.getInt(LAST_VIDEO_POSITION_PREFIX + path.toLowerCase(), 0) val value = prefs.getInt(LAST_VIDEO_POSITION_PREFIX + path.toLowerCase(), 0)
System.out.println("Get position: $path at $value")
return value return value
} }