fix: хардкод строки -> strings.xml

This commit is contained in:
samosvalishe committed 2026-04-25 15:01:42 +03:00
1 parent 102ef6febf
commit 11fb5b8a55
2 files changed
+5 -3

No files matched your search

@@ -117,8 +117,8 @@ class ProxyService : Service() {
PendingIntent.getActivity(this, 0, it, PendingIntent.FLAG_IMMUTABLE)
}
val notification = NotificationCompat.Builder(this, CHANNEL_PROXY)
.setContentTitle("VK TURN Proxy")
.setContentText("Подключение...")
.setContentTitle(getString(R.string.notif_proxy_title))
.setContentText(getString(R.string.notif_proxy_connecting))
.setSmallIcon(android.R.drawable.ic_menu_preferences)
.setOngoing(true)
.setContentIntent(openAppIntent)
@@ -492,7 +492,7 @@ class ProxyService : Service() {
private fun updateNotification(text: String) {
val notification = NotificationCompat.Builder(this, CHANNEL_PROXY)
.setContentTitle("VK TURN Proxy")
.setContentTitle(getString(R.string.notif_proxy_title))
.setContentText(text)
.setSmallIcon(android.R.drawable.ic_menu_preferences)
.setOngoing(true)
+2
View File
@@ -154,6 +154,8 @@
<string name="privacy_mode_desc">Скрывает IP и порты</string>
<!-- Notifications -->
<string name="notif_proxy_title">FreeTurn</string>
<string name="notif_proxy_connecting">Подключение…</string>
<string name="notif_channel_proxy">Прокси</string>
<string name="notif_channel_captcha">Капча</string>
<string name="notif_captcha_title">Требуется прохождение капчи</string>