Skip to content

Commit

Permalink
Clarify when update interval specified in connection settings is used
Browse files Browse the repository at this point in the history
  • Loading branch information
equeim committed Apr 29, 2024
1 parent 762ba32 commit ddbebd7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion app/src/main/res/layout/server_edit_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,17 @@ SPDX-License-Identifier: GPL-3.0-or-later
android:inputType="number" />
</com.google.android.material.textfield.TextInputLayout>

<TextView
android:id="@+id/update_interval_hint"
android:layout_width="match_parent"
android:layout_marginTop="@dimen/linear_layout_vertical_spacing"
android:text="@string/update_interval_hint"
android:layout_height="wrap_content" />

<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/linear_layout_vertical_spacing"
android:layout_marginTop="@dimen/linear_layout_vertical_spacing_double"
android:hint="@string/timeout"
app:suffixText="@string/text_field_suffix_seconds">

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<string name="username">Username</string>
<string name="password">Password</string>
<string name="update_interval">Update interval</string>
<string name="update_interval_hint">This update interval is used only when application is in foreground, or persistent notification is active. Background update interval can be configured in application settings.</string>
<string name="text_field_suffix_seconds">seconds</string>
<string name="timeout">Timeout</string>

Expand Down Expand Up @@ -503,7 +504,7 @@ SPDX-License-Identifier: GPL-3.0-or-later

<string name="persistent_notification">Persistent notification</string>

<string name="persistent_notification_warning">Enabling persistent notification will prevent application from switching to background update mode and may cause excessive battery drain</string>
<string name="persistent_notification_warning">Enabling persistent notification will cause application to update data with the interval configured in connection settings even when it\'s in the background, which can cause excessive battery drain</string>

<string name="prefs_background_update_interval_title">Background update interval</string>
<string-array name="prefs_background_update_interval_entries">
Expand Down

0 comments on commit ddbebd7

Please sign in to comment.