Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add mount check

Neeraj Gupta49e7c4baaf79
diff --git a/mobile/lib/ui/components/text_input_widget.dart b/mobile/lib/ui/components/text_input_widget.dart
index 54d734ed9d..b135b32b15 100644
--- a/mobile/lib/ui/components/text_input_widget.dart
+++ b/mobile/lib/ui/components/text_input_widget.dart
@@ -137,9 +137,11 @@ class _TextInputWidgetState extends State<TextInputWidget> {
if (executionState == ExecutionState.successful) {
Future.delayed(Duration(seconds: widget.popNavAfterSubmission ? 1 : 2),
() {
- setState(() {
- executionState = ExecutionState.idle;
- });
+ if (mounted) {
+ setState(() {
+ executionState = ExecutionState.idle;
+ });
+ }
});
}
final colorScheme = getEnteColorScheme(context);