Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Dec 4, 2023
1 parent 82d8eba commit cf2becb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ class SettingsActivity : BaseActivity() {
}

autoUpdateInterval?.setOnPreferenceChangeListener { _, any ->
val nval = any as String
var nval = any as String

autoUpdateInterval?.summary = nval
// It must be greater than 15 minutes because WorkManager couldn't run tasks under 15 minutes intervals
autoUpdateInterval?.summary =
nval =
if (TextUtils.isEmpty(nval) or (nval.toLong() < 15)) AppConfig.SUBSCRIPTION_DEFAULT_UPDATE_INTERVAL else nval
configureUpdateTask(nval.toLong())
true
Expand Down
2 changes: 1 addition & 1 deletion V2rayNG/app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@

<string name="title_pref_auto_update_subscription">自动更新订阅</string>
<string name="summary_pref_auto_update_subscription">在后台按一定时间间隔自动更新您的订阅。受设备影响,此功能不一定总是有效</string>
<string name="title_pref_auto_update_interval">订阅自动更新间隔(分钟)</string>
<string name="title_pref_auto_update_interval">自动更新间隔(分钟,最小值15)</string>

<string name="title_core_loglevel">日志级别</string>
<string name="title_mode">模式</string>
Expand Down
2 changes: 1 addition & 1 deletion V2rayNG/app/src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@

<string name="title_pref_auto_update_subscription">自動更新訂閱</string>
<string name="summary_pref_auto_update_subscription">在後台以一定時間間隔自動更新您的訂閱。受設備影響,此功能不一定總是有效</string>
<string name="title_pref_auto_update_interval">訂閱自動更新間隔(分鐘)</string>
<string name="title_pref_auto_update_interval">自動更新間隔(分鐘,最小值15)</string>

<string name="title_core_loglevel">記錄層級</string>
<string name="title_mode">模式</string>
Expand Down
2 changes: 1 addition & 1 deletion V2rayNG/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@

<string name="title_pref_auto_update_subscription">Automatic update subscriptions</string>
<string name="summary_pref_auto_update_subscription">Update your subscriptions automatically with an interval in background. Depending on the device, this feature may not always work</string>
<string name="title_pref_auto_update_interval">Subscription Auto Update Interval (Minutes)</string>
<string name="title_pref_auto_update_interval">Auto Update Interval (Minutes, Min value 15)</string>

<string name="title_core_loglevel">Log Level</string>
<string name="title_mode">Mode</string>
Expand Down

0 comments on commit cf2becb

Please sign in to comment.