From 9bb468b1d3393b23367f350a6af0264facbfe146 Mon Sep 17 00:00:00 2001 From: samosvalishe Date: Wed, 17 Jun 2026 19:41:24 +0300 Subject: [PATCH] =?UTF-8?q?feat(shortcuts):=20=D0=B7=D0=B0=D0=BF=D1=83?= =?UTF-8?q?=D1=81=D0=BA/=D1=81=D1=82=D0=BE=D0=BF=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=BA=D1=81=D0=B8=20=D0=BF=D0=BE=20long-press=20=D0=B8=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/AndroidManifest.xml | 15 +++++++++++ .../app/service/ProxyShortcutActivity.kt | 21 ++++++++++++++++ app/src/main/res/values/strings.xml | 6 +++++ app/src/main/res/xml/shortcuts.xml | 25 +++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 app/src/main/java/com/freeturn/app/service/ProxyShortcutActivity.kt create mode 100644 app/src/main/res/xml/shortcuts.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f8f6512..979cf96 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -65,8 +65,23 @@ + + + + + + + + sendBroadcast( + Intent(this, ProxyReceiver::class.java).setAction(intent.action) + ) + } + finish() + } +} diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e348a5d..349b88e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -339,6 +339,12 @@ Free Turn Прокси и WireGuard активны + + Запуск + Запустить прокси + Стоп + Остановить прокси + Имя туннеля MTU diff --git a/app/src/main/res/xml/shortcuts.xml b/app/src/main/res/xml/shortcuts.xml new file mode 100644 index 0000000..4a50fa6 --- /dev/null +++ b/app/src/main/res/xml/shortcuts.xml @@ -0,0 +1,25 @@ + + + + + + + + +