From b6822a3d1162026f8e0ebd014d2a0b80756860bf Mon Sep 17 00:00:00 2001 From: tateisu Date: Tue, 11 Sep 2018 18:54:59 +0900 Subject: [PATCH] version 1.14.1 --- app/build.gradle | 4 ++-- app/src/main/java/jp/juggler/fadownloader/Pref.kt | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 6da2425..d4a7f30 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { minSdkVersion min_sdk_version targetSdkVersion target_sdk_version - versionCode 20 - versionName "1.14.0" + versionCode 21 + versionName "1.14.1" applicationId "jp.juggler.fadownloader" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/jp/juggler/fadownloader/Pref.kt b/app/src/main/java/jp/juggler/fadownloader/Pref.kt index 55b1cd5..5afa623 100644 --- a/app/src/main/java/jp/juggler/fadownloader/Pref.kt +++ b/app/src/main/java/jp/juggler/fadownloader/Pref.kt @@ -116,6 +116,8 @@ object Pref { const val LAST_MODE_ONCE = 1 const val LAST_MODE_REPEAT = 2 + private const val DEFAULT_REPEAT_INTERVAL_SECONDS = 30 + private const val DEFAULT_WIFI_AP_CHANGE_INTERVAL = 5000L private const val DEFAULT_WIFI_SCAN_INTERVAL = 10000L private const val DEFAULT_TETHER_SPRAY_INTERVAL = 3000L @@ -145,7 +147,7 @@ object Pref { val uiInterval = StringPref( "ui_interval", - "30" // unit : second + DEFAULT_REPEAT_INTERVAL_SECONDS.toString() ) val uiTetherSprayInterval = StringPref( @@ -234,7 +236,7 @@ object Pref { val workerInterval = IntPref( "worker_interval", - 86400 // unit : second + DEFAULT_REPEAT_INTERVAL_SECONDS ) val workerLocationIntervalDesired = LongPref(