chore(mobile): use Record instead of custom pair+triple ()

This commit is contained in:
Fynn Petersen-Frey 2023-05-21 03:41:34 +02:00 committed by GitHub
parent a089d9891d
commit dc7b0f75bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 58 additions and 80 deletions
mobile/lib/modules/backup/views

View file

@ -364,7 +364,7 @@ class BackupControllerPage extends HookConsumerWidget {
.read(backgroundServiceProvider)
.getIOSBackgroundAppRefreshEnabled(),
builder: (context, snapshot) {
final enabled = snapshot.data as bool?;
final enabled = snapshot.data;
// If it's not enabled, show them some kind of alert that says
// background refresh is not enabled
if (enabled != null && !enabled) {}