add support for Home page in Android

This commit is contained in:
Adam Velebil 2024-03-11 11:37:00 +01:00
parent 3272324701
commit 3c8eee9b78
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10
2 changed files with 2 additions and 6 deletions

View File

@ -58,7 +58,7 @@ Future<Widget> initialize() async {
overrides: [
supportedAppsProvider.overrideWith(
(ref) {
return [Application.accounts, Application.passkeys];
return [Application.home, Application.accounts, Application.passkeys];
},
),
prefProvider.overrideWithValue(await SharedPreferences.getInstance()),
@ -117,7 +117,6 @@ Future<Widget> initialize() async {
// Disable unimplemented feature
..setFeature(features.piv, false)
..setFeature(features.otp, false)
..setFeature(features.home, false)
..setFeature(features.management, false);
});

View File

@ -19,7 +19,6 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:material_symbols_icons/symbols.dart';
import '../../core/state.dart';
import '../models.dart';
import '../state.dart';
import 'device_picker.dart';
@ -127,9 +126,7 @@ class NavigationContent extends ConsumerWidget {
.where(
(app) => app.getAvailability(data) != Availability.unsupported)
.toList()
: !isAndroid // TODO: Remove check when Home is implemented on Android
? [Application.home]
: <Application>[];
: [Application.home];
availableApps.remove(Application.management);
final currentApp = ref.watch(currentAppProvider);