Skip to content

Commit

Permalink
🐛 Fix network dialog not shown in some cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 21, 2020
1 parent d6dd9c0 commit b922c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class OpenJMUAppState extends State<OpenJMUApp> with WidgetsBindingObserver {
}

void checkIfNoConnectivity(ConnectivityResult result) {
if (result == ConnectivityResult.none && connectivityToastFuture == null) {
if (result == ConnectivityResult.none) {
connectivityToastFuture ??= showNoConnectivityDialog;
} else {
connectivityToastFuture?.dismiss(showAnim: true);
Expand Down

0 comments on commit b922c32

Please sign in to comment.