Skip to content

Commit bb55600

Browse files
committed
fix: Do not shot profile success update notifications
1 parent b01997f commit bb55600

File tree

9 files changed

+2
-20
lines changed

9 files changed

+2
-20
lines changed

design/src/main/res/values-vi/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@
112112
<string name="format_provider_type">%1$s(%2$s)</string>
113113
<string name="format_traffic_forwarded">%s được sử dụng</string>
114114
<string name="format_type_unsaved">%s (Chưa lưu)</string>
115-
<string name="format_update_complete">Cập nhật %s thành công</string>
116115
<string name="format_update_failure">Cập nhật %1$s: %2$s</string>
117116
<string name="format_update_provider_failure">Cập nhật %1$s: %2$s</string>
118117
<string name="format_years_ago">%d năm trước</string>

service/src/main/java/com/github/kr328/clash/service/ProfileWorker.kt

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class ProfileWorker : BaseService() {
8787
ProfileProcessor.update(this, imported.uuid, null)
8888
}
8989

90-
completed(imported.uuid, imported.name)
90+
completed(imported.uuid)
9191

9292
ProfileReceiver.scheduleNext(this, imported)
9393
} catch (e: Exception) {
@@ -169,17 +169,7 @@ class ProfileWorker : BaseService() {
169169
.setGroup(RESULT_CHANNEL)
170170
}
171171

172-
private fun completed(uuid: UUID, name: String) {
173-
val id = UndefinedIds.next()
174-
175-
val notification = resultBuilder(id, uuid)
176-
.setContentTitle(getString(R.string.update_successfully))
177-
.setContentText(getString(R.string.format_update_complete, name))
178-
.build()
179-
180-
NotificationManagerCompat.from(this)
181-
.notify(id, notification)
182-
172+
private fun completed(uuid: UUID) {
183173
sendProfileUpdateCompleted(uuid)
184174
}
185175

service/src/main/res/values-ja-rJP/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<string name="profile_process_result">プロファイルプロセスの結果</string>
77
<string name="update_successfully">正常に更新されました</string>
88
<string name="update_failure">更新に失敗しました</string>
9-
<string name="format_update_complete">%sを更新しました</string>
109
<string name="format_update_failure">更新 %1$s: %2$s </string>
1110
<string name="running">実行中</string>
1211
<string name="loading">読み込み中</string>

service/src/main/res/values-ko-rKR/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<string name="profile_process_result">구성 파일 처리 결과</string>
77
<string name="update_successfully">업데이트 성공</string>
88
<string name="update_failure">업데이트 실패</string>
9-
<string name="format_update_complete">%s 업데이트 성공</string>
109
<string name="format_update_failure">업데이트 %1$s: %2$s</string>
1110
<string name="running">연결됨</string>
1211
<string name="loading">로딩중</string>

service/src/main/res/values-ru/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<string name="profile_process_result">Результат обработки профиля</string>
99
<string name="update_successfully">Успешно обновлено</string>
1010
<string name="update_failure">Не удалось обновить</string>
11-
<string name="format_update_complete">Обновление %s завершено</string>
1211
<string name="format_update_failure">Обновление %1$s: %2$s</string>
1312
<string name="running">Работает</string>
1413
<string name="loading">Загружается</string>

service/src/main/res/values-zh-rHK/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<resources>
33
<string name="clash_service_status_channel">Clash 狀態</string>
44
<string name="running">正在運行</string>
5-
<string name="format_update_complete">更新 %s 成功</string>
65
<string name="format_update_failure">"更新 %1$s: %2$s "</string>
76
<string name="clash_meta_for_android">Clash Meta for Android</string>
87
<string name="profiles_and_providers">配置文件和外部資源</string>

service/src/main/res/values-zh-rTW/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<resources>
33
<string name="clash_service_status_channel">Clash 狀態</string>
44
<string name="running">正在運作</string>
5-
<string name="format_update_complete">更新 %s 成功</string>
65
<string name="format_update_failure">"更新 %1$s: %2$s "</string>
76
<string name="clash_meta_for_android">Clash Meta for Android</string>
87
<string name="profiles_and_providers">設定檔和外部資源</string>

service/src/main/res/values-zh/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<resources>
33
<string name="clash_service_status_channel">Clash 状态</string>
44
<string name="running">正在运行</string>
5-
<string name="format_update_complete">更新 %s 成功</string>
65
<string name="format_update_failure">"更新 %1$s: %2$s "</string>
76
<string name="clash_meta_for_android">Clash Meta for Android</string>
87
<string name="profiles_and_providers">配置文件和外部资源</string>

service/src/main/res/values/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<string name="profile_process_result">Profile Process Result</string>
99
<string name="update_successfully">Update Successfully</string>
1010
<string name="update_failure">Update Failure</string>
11-
<string name="format_update_complete">Update %s completed</string>
1211
<string name="format_update_failure">Update %1$s: %2$s</string>
1312
<string name="running">Running</string>
1413
<string name="loading">Loading</string>

0 commit comments

Comments
 (0)