Skip to content

Hide update notification #532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion design/src/main/res/values-vi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
<string name="format_provider_type">%1$s(%2$s)</string>
<string name="format_traffic_forwarded">%s được sử dụng</string>
<string name="format_type_unsaved">%s (Chưa lưu)</string>
<string name="format_update_complete">Cập nhật %s thành công</string>
<string name="format_update_failure">Cập nhật %1$s: %2$s</string>
<string name="format_update_provider_failure">Cập nhật %1$s: %2$s</string>
<string name="format_years_ago">%d năm trước</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class ProfileWorker : BaseService() {
ProfileProcessor.update(this, imported.uuid, null)
}

completed(imported.uuid, imported.name)
completed(imported.uuid)

ProfileReceiver.scheduleNext(this, imported)
} catch (e: Exception) {
Expand Down Expand Up @@ -169,17 +169,7 @@ class ProfileWorker : BaseService() {
.setGroup(RESULT_CHANNEL)
}

private fun completed(uuid: UUID, name: String) {
val id = UndefinedIds.next()

val notification = resultBuilder(id, uuid)
.setContentTitle(getString(R.string.update_successfully))
.setContentText(getString(R.string.format_update_complete, name))
.build()

NotificationManagerCompat.from(this)
.notify(id, notification)

private fun completed(uuid: UUID) {
sendProfileUpdateCompleted(uuid)
}

Expand Down
1 change: 0 additions & 1 deletion service/src/main/res/values-ja-rJP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<string name="profile_process_result">プロファイルプロセスの結果</string>
<string name="update_successfully">正常に更新されました</string>
<string name="update_failure">更新に失敗しました</string>
<string name="format_update_complete">%sを更新しました</string>
<string name="format_update_failure">更新 %1$s: %2$s </string>
<string name="running">実行中</string>
<string name="loading">読み込み中</string>
Expand Down
1 change: 0 additions & 1 deletion service/src/main/res/values-ko-rKR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<string name="profile_process_result">구성 파일 처리 결과</string>
<string name="update_successfully">업데이트 성공</string>
<string name="update_failure">업데이트 실패</string>
<string name="format_update_complete">%s 업데이트 성공</string>
<string name="format_update_failure">업데이트 %1$s: %2$s</string>
<string name="running">연결됨</string>
<string name="loading">로딩중</string>
Expand Down
1 change: 0 additions & 1 deletion service/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<string name="profile_process_result">Результат обработки профиля</string>
<string name="update_successfully">Успешно обновлено</string>
<string name="update_failure">Не удалось обновить</string>
<string name="format_update_complete">Обновление %s завершено</string>
<string name="format_update_failure">Обновление %1$s: %2$s</string>
<string name="running">Работает</string>
<string name="loading">Загружается</string>
Expand Down
1 change: 0 additions & 1 deletion service/src/main/res/values-zh-rHK/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<resources>
<string name="clash_service_status_channel">Clash 狀態</string>
<string name="running">正在運行</string>
<string name="format_update_complete">更新 %s 成功</string>
<string name="format_update_failure">"更新 %1$s: %2$s "</string>
<string name="clash_meta_for_android">Clash Meta for Android</string>
<string name="profiles_and_providers">配置文件和外部資源</string>
Expand Down
1 change: 0 additions & 1 deletion service/src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<resources>
<string name="clash_service_status_channel">Clash 狀態</string>
<string name="running">正在運作</string>
<string name="format_update_complete">更新 %s 成功</string>
<string name="format_update_failure">"更新 %1$s: %2$s "</string>
<string name="clash_meta_for_android">Clash Meta for Android</string>
<string name="profiles_and_providers">設定檔和外部資源</string>
Expand Down
1 change: 0 additions & 1 deletion service/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<resources>
<string name="clash_service_status_channel">Clash 状态</string>
<string name="running">正在运行</string>
<string name="format_update_complete">更新 %s 成功</string>
<string name="format_update_failure">"更新 %1$s: %2$s "</string>
<string name="clash_meta_for_android">Clash Meta for Android</string>
<string name="profiles_and_providers">配置文件和外部资源</string>
Expand Down
1 change: 0 additions & 1 deletion service/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<string name="profile_process_result">Profile Process Result</string>
<string name="update_successfully">Update Successfully</string>
<string name="update_failure">Update Failure</string>
<string name="format_update_complete">Update %s completed</string>
<string name="format_update_failure">Update %1$s: %2$s</string>
<string name="running">Running</string>
<string name="loading">Loading</string>
Expand Down