Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Use separate notification channel while monitoring run conditions#1046

Merged
AudriusButkevicius merged 1 commit into
syncthing:masterfrom
capi:notification-channel-for-idle
Mar 28, 2018
Merged

Use separate notification channel while monitoring run conditions#1046
AudriusButkevicius merged 1 commit into
syncthing:masterfrom
capi:notification-channel-for-idle

Conversation

@capi

@capi capi commented Mar 28, 2018

Copy link
Copy Markdown
Contributor

As discussed in #998, or #1021, since Android 8.0 we are currently forced to have the service running with foreground priority in order to receive broadcasts. This leads to the "Syncthing is disabled" notification, which is annoying.

Splitting the "Syncthing is active" and "Syncthing is disabled" into two separate notification channels at least allows on 8.0+ to hide or at least make the "Syncthing is disabled" notification less intrusive.

Unfortunately this advantage remains only for 8.0+, so this is not a fix for the issues referenced above.

@AudriusButkevicius AudriusButkevicius merged commit 7194e25 into syncthing:master Mar 28, 2018
@AudriusButkevicius

Copy link
Copy Markdown
Member

Should have waited for the build to finish, but the toolchain compilation takes ages.

<string name="notification_crash_text">Click to view logs</string>

<string name="notifications_persistent_channel">Persistent notification</string>
<string name="notifications_persistent_channel">Syncthing active</string>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should use a new name, otherwise the existing translations for "Persistent notification" will keep being active.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I just wanted to rename the channel. I tested it out, it works. No new channel is created, but the display name of the channel has been updated from "Persistent notification" to "Syncthing active", which now fits better.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I understand what you mean, I misread. You are right about the translations, of course.

@imsodin imsodin Mar 28, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit: *** - didn't see your last comment before posting the following.

Sure in English there's not going to be a problem, I am thinking about the translation system: Is it smart enough to detect the change and remove all existing translations for the notifications_persistent_channel string? Otherwise the existing translations of "Persistent notification" will keep being used, while new translations for "Syncthing active" should be used.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately I've never cared about the translations yet. I'm not sure how they are done. Are they imported manually? I'll have a look and if it proves to be a problem, I'll either remove the current translations there and/or rename the key, as appropriate.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe transifex automatically imports/reads this file and the translations then need to be imported/committed manually (e.g. 8f324a8). I requested access to German&French translations to check what happened to the string after this merge - maybe anyone else with access could check it too, because I won't be active anymore for a bit over a week past midday today :)

@capi capi deleted the notification-channel-for-idle branch March 28, 2018 22:28
@syncthing syncthing locked and limited conversation to collaborators Mar 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants