Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Fix duplicate dispose regressions in account flows

Neeraj Gupta277e53cfb7df
diff --git a/mobile/apps/photos/lib/ui/account/ott_verification_page.dart b/mobile/apps/photos/lib/ui/account/ott_verification_page.dart
index 9667140f26..9769cab80d 100644
--- a/mobile/apps/photos/lib/ui/account/ott_verification_page.dart
+++ b/mobile/apps/photos/lib/ui/account/ott_verification_page.dart
@@ -53,12 +53,6 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {
super.dispose();
}
- @override
- void dispose() {
- _verificationCodeController.dispose();
- super.dispose();
- }
-
@override
Widget build(BuildContext context) {
final isKeypadOpen = MediaQuery.of(context).viewInsets.bottom > 100;
diff --git a/mobile/apps/photos/lib/ui/account/password_entry_page.dart b/mobile/apps/photos/lib/ui/account/password_entry_page.dart
index a06de18236..52e914f58f 100644
--- a/mobile/apps/photos/lib/ui/account/password_entry_page.dart
+++ b/mobile/apps/photos/lib/ui/account/password_entry_page.dart
@@ -85,15 +85,6 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
super.dispose();
}
- @override
- void dispose() {
- _passwordController1.dispose();
- _passwordController2.dispose();
- _password1FocusNode.dispose();
- _password2FocusNode.dispose();
- super.dispose();
- }
-
@override
Widget build(BuildContext context) {
final isKeypadOpen = MediaQuery.of(context).viewInsets.bottom > 100;
diff --git a/mobile/apps/photos/lib/ui/account/recovery_page.dart b/mobile/apps/photos/lib/ui/account/recovery_page.dart
index 39c5a6b4b4..7ac55fc040 100644
--- a/mobile/apps/photos/lib/ui/account/recovery_page.dart
+++ b/mobile/apps/photos/lib/ui/account/recovery_page.dart
@@ -21,7 +21,7 @@ class _RecoveryPageState extends State<RecoveryPage> {
@override
void dispose() {
- _recoveryKey.dispose();
+ _recoveryKeyController.dispose();
super.dispose();
}
diff --git a/mobile/apps/photos/lib/ui/account/two_factor_recovery_page.dart b/mobile/apps/photos/lib/ui/account/two_factor_recovery_page.dart
index aee99c82c0..a3a253a99b 100644
--- a/mobile/apps/photos/lib/ui/account/two_factor_recovery_page.dart
+++ b/mobile/apps/photos/lib/ui/account/two_factor_recovery_page.dart
@@ -38,12 +38,6 @@ class _TwoFactorRecoveryPageState extends State<TwoFactorRecoveryPage> {
super.dispose();
}
- @override
- void dispose() {
- _recoveryKey.dispose();
- super.dispose();
- }
-
@override
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);