fix(app): align Android VPN runtime integration

Remove obsolete UI-process runtime plumbing and reuse the native service-owned notification and generation-scoped control path.
This commit is contained in:
Naveax committed 2026-09-04 00:08:34 +03:00
1 parent 20137ddc48
commit 1fcdd9c58d
3 files changed
+25 -99

No files matched your search

+3 -2
View File
@@ -16,16 +16,17 @@ class NotificationService {
/// Sets the notification's content text to [text].
///
/// The native side rebuilds the whole notification, so skip the round-trip
/// when the text has not changed.
/// when the text has not changed. A failed native update is intentionally
/// not cached so the next tick can retry it.
static Future<void> updateTimer(String text) async {
if (text == _lastText) return;
_lastText = text;
try {
await _channel.invokeMethod<void>('updateNotificationText', {
'title': 'Revolt VPN',
'text': text,
'disconnectLabel': 'Disconnect',
});
_lastText = text;
} catch (_) {
// Cosmetic.
}