Skip to content

Commit

Permalink
disable enableOnBackInvokedCallback as it is not supported by Flutt…
Browse files Browse the repository at this point in the history
…erFragmentActivity 🙈 flutter/engine#44865 flutter/flutter#109558
  • Loading branch information
hpoul committed Feb 19, 2024
1 parent 7de5708 commit 3874d23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion authpass/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@
android:name="android.hardware.camera"
android:required="false" />

<!-- enableOnBackInvokedCallback not working with FlutterFragmentActivity
https://github.com/flutter/engine/pull/44865
https://github.com/flutter/flutter/issues/109558
-->
<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:enableOnBackInvokedCallback="true"
android:enableOnBackInvokedCallback="false"
android:fullBackupContent="@xml/backup_descriptor"
tools:targetApi="tiramisu">
<activity
Expand Down
6 changes: 6 additions & 0 deletions authpass/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,12 @@ class _AuthPassAppState extends State<AuthPassApp> with StreamSubscriberMixin {
}
return ret;
},
// onNavigationNotification: (notification) {
// _logger.fine(
// 'onNavigationNotification: canHandlePop:${notification.canHandlePop} ()');
// SystemNavigator.setFrameworkHandlesBack(notification.canHandlePop);
// return true;
// },
onGenerateInitialRoutes: (initialRoute) {
_logger.fine('initialRoute: $initialRoute');
_deps.analytics.trackScreen(initialRoute);
Expand Down

0 comments on commit 3874d23

Please sign in to comment.