mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-02-18 00:17:40 +01:00
exit app on Android to apply patch
This commit is contained in:
@@ -160,9 +160,9 @@ class _AppTitleState extends State<AppTitle> {
|
||||
content: Text('Force-close the app to use the new version'),
|
||||
duration: Duration(seconds: 10),
|
||||
action: SnackBarAction(
|
||||
label: 'Attempt Restart',
|
||||
label: 'Restart',
|
||||
onPressed: () {
|
||||
if (Platform.isIOS || Platform.isAndroid) {
|
||||
if (Platform.isIOS) {
|
||||
connection.reset();
|
||||
Restart.restartApp(delayBeforeRestart: 1000);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user