From fc329bae4a65c144c82e8c95b0829eae45632a8b Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Mon, 1 Apr 2019 12:18:33 +0200 Subject: [PATCH 1/5] adding a space --- .../gallery/pro/activities/SettingsActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt index e1d83cf1e..a8df6dc58 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt @@ -801,7 +801,7 @@ class SettingsActivity : SimpleActivity() { LAST_CONFLICT_APPLY_TO_ALL -> config.lastConflictApplyToAll = value.toBoolean() } - if(key.startsWith(LAST_VIDEO_POSITION_PREFIX)) { + if (key.startsWith(LAST_VIDEO_POSITION_PREFIX)) { config.saveLastVideoPosition(key, value as Int) } } From 4cfc1cad47a794802520e42b41102257b142c8c0 Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Mon, 1 Apr 2019 12:19:05 +0200 Subject: [PATCH 2/5] adding a space --- .../gallery/pro/activities/VideoPlayerActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt index ef3b1f046..a1f0c225e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt @@ -325,7 +325,7 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen private fun setLastVideoSavedPosition() { val pos = config.getLastVideoPosition(mUri.toString()) - if(pos > 0) { + if (pos > 0) { setPosition(pos) } } From ee18bdfb89de5ce3116d3b02f2d34fa6e27c1af8 Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Mon, 1 Apr 2019 12:19:42 +0200 Subject: [PATCH 3/5] adding a space --- .../simplemobiletools/gallery/pro/fragments/VideoFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt index c8913e8db..1f220e798 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt @@ -287,7 +287,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S private fun restoreLastVideoSavedPosition() { val pos = mConfig.getLastVideoPosition(mMedium.path) - if(pos > 0) { + if (pos > 0) { setPosition(pos) } } From 64c98d2b1fdf214b7d27456fc55a26003540f171 Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Mon, 1 Apr 2019 12:20:43 +0200 Subject: [PATCH 4/5] minor code style updates --- .../com/simplemobiletools/gallery/pro/helpers/Config.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Config.kt index 4cfcc5cd9..f287b8308 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/Config.kt @@ -385,11 +385,11 @@ class Config(context: Context) : BaseConfig(context) { } } - fun getLastVideoPosition(path: String): Int { - return prefs.getInt("$LAST_VIDEO_POSITION_PREFIX${path.toLowerCase()}", 0) - } + fun getLastVideoPosition(path: String) = prefs.getInt("$LAST_VIDEO_POSITION_PREFIX${path.toLowerCase()}", 0) - fun getAllLastVideoPositions() = prefs.all.filterKeys { it.startsWith(LAST_VIDEO_POSITION_PREFIX) } + fun getAllLastVideoPositions() = prefs.all.filterKeys { + it.startsWith(LAST_VIDEO_POSITION_PREFIX) + } var rememberLastVideoPosition: Boolean get() = prefs.getBoolean(REMEMBER_LAST_VIDEO_POSITION, false) From 8528ce099c40a5429ea3c2374670fbeef44261f0 Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Mon, 1 Apr 2019 12:21:33 +0200 Subject: [PATCH 5/5] replacing a tab with spaces --- app/src/main/res/values-da/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/values-da/strings.xml b/app/src/main/res/values-da/strings.xml index 030ece68f..fa848f072 100644 --- a/app/src/main/res/values-da/strings.xml +++ b/app/src/main/res/values-da/strings.xml @@ -196,7 +196,7 @@ Først skal du finde det nuværende standard galleri, i Apps sektionen af din enheds indstillinger. Kig efter en knap som hedder noget i stil med \"Åbn som standard\", klik på denne og vælg \"Ryd standarder\". Næste gang du forsøger at åbne et billede eller en video, bør du se en app-vælger, hvor du kan vælge Simple Gallery og gøre den til standard app\'en. Jeg har låst app\'en med en adgangskode, men jeg har glemt den. Hvad kan jeg gøre? - Du kan løse dette på to måder. Du kan enten geninstallere app\'en, eller finde app\'en i indstillingerne på din enhed og vælge \"Ryd data\". Dette vil nulstille alle dine indstillinger, det vil ikke slette nogle mediefiler. + Du kan løse dette på to måder. Du kan enten geninstallere app\'en, eller finde app\'en i indstillingerne på din enhed og vælge \"Ryd data\". Dette vil nulstille alle dine indstillinger, det vil ikke slette nogle mediefiler. Hvordan kan jeg altid få et bestemt album vist i toppen? Du kan holde fingeren nede på det ønskede album, og vælge tegnstift-ikonet i menuen, dette vil fastgøre den til toppen. Du kan fastgøre flere mapper også. Fastgjorte elementer vil blive sorteret efter standard sorterings-metoden. Hvordan kan jeg spole fremad i videoer?